TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

A language picker with translated languages using wikidata

1 点作者 pietervdvn大约 3 年前

1 comment

yorwba大约 3 年前
I have a few quibbles:<p>- The ordering is still based on the language code, which is only kind of alphabetic, so one might need to scan the whole list to find a language or verify that it&#x27;s not in the list.<p>- The label for Simplified Chinese is 簡體中文, which does mean &quot;Simplified Chinese&quot;, but it&#x27;s in Traditional Chinese characters, and all the other language names are as well.<p>- Wikidata item descriptions are made for Wikidata, which means they&#x27;re often rather verbose, e.g. to distinguish &quot;X language&quot; from &quot;X nationality&quot;. The CLDR has translated language names for use in language selectors that are more succinct. E.g &quot;Galician&quot; in Galician is simply &quot;galego&quot; instead of &quot;lingua galega&quot; <a href="https:&#x2F;&#x2F;unicode-org.github.io&#x2F;cldr-staging&#x2F;charts&#x2F;latest&#x2F;by_type&#x2F;locale_display_names.languages__e-j_.html#58ff4884012bc33c" rel="nofollow">https:&#x2F;&#x2F;unicode-org.github.io&#x2F;cldr-staging&#x2F;charts&#x2F;latest&#x2F;by_...</a> I&#x27;d generally prefer the CLDR and only use Wikidata as a fallback.