<tfoot id='nzqgC'></tfoot>
    1. <small id='nzqgC'></small><noframes id='nzqgC'>

      <legend id='nzqgC'><style id='nzqgC'><dir id='nzqgC'><q id='nzqgC'></q></dir></style></legend>

        <bdo id='nzqgC'></bdo><ul id='nzqgC'></ul>

        <i id='nzqgC'><tr id='nzqgC'><dt id='nzqgC'><q id='nzqgC'><span id='nzqgC'><b id='nzqgC'><form id='nzqgC'><ins id='nzqgC'></ins><ul id='nzqgC'></ul><sub id='nzqgC'></sub></form><legend id='nzqgC'></legend><bdo id='nzqgC'><pre id='nzqgC'><center id='nzqgC'></center></pre></bdo></b><th id='nzqgC'></th></span></q></dt></tr></i><div id='nzqgC'><tfoot id='nzqgC'></tfoot><dl id='nzqgC'><fieldset id='nzqgC'></fieldset></dl></div>
      1. Javascript 中 ISO 639-1 代码中的语言名称

        Language name from ISO 639-1 code in Javascript(Javascript 中 ISO 639-1 代码中的语言名称)
      2. <small id='7iDQi'></small><noframes id='7iDQi'>

            <tbody id='7iDQi'></tbody>

              <bdo id='7iDQi'></bdo><ul id='7iDQi'></ul>
              <tfoot id='7iDQi'></tfoot>

            • <legend id='7iDQi'><style id='7iDQi'><dir id='7iDQi'><q id='7iDQi'></q></dir></style></legend>
            • <i id='7iDQi'><tr id='7iDQi'><dt id='7iDQi'><q id='7iDQi'><span id='7iDQi'><b id='7iDQi'><form id='7iDQi'><ins id='7iDQi'></ins><ul id='7iDQi'></ul><sub id='7iDQi'></sub></form><legend id='7iDQi'></legend><bdo id='7iDQi'><pre id='7iDQi'><center id='7iDQi'></center></pre></bdo></b><th id='7iDQi'></th></span></q></dt></tr></i><div id='7iDQi'><tfoot id='7iDQi'></tfoot><dl id='7iDQi'><fieldset id='7iDQi'></fieldset></dl></div>

                  本文介绍了Javascript 中 ISO 639-1 代码中的语言名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在建立一个网站,人们可以在其中将语言信息与内容相关联.

                  I'm building a website where people can associate a language information to content.

                  网站大量使用 Javascript,与各种元素相关的语言信息在内部被视为 ISO 639-1 代码.

                  The website uses Javascript heavily and the language information associated to various elements is treated internally as an ISO 639-1 code.

                  如何以用户的语言显示语言名称列表?

                  How to show a list of language names - in the language of the user ?

                  推荐答案

                  在 new(ish) 国际 API:

                  There is a native support for this in the new(ish) Intl API:

                  let languageNames = new Intl.DisplayNames(['en'], {type: 'language'});
                  languageNames.of('fr');      // "French"
                  languageNames.of('de');      // "German"
                  languageNames.of('fr-CA');   // "Canadian French"
                  

                  这篇关于Javascript 中 ISO 639-1 代码中的语言名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  quot;Status Code:200 OK (from ServiceWorker)quot; in Chrome Network DevTools?(“状态码:200 OK(来自 ServiceWorker)在 Chrome 网络开发工具中?)
                  How to set a header for a HTTP GET request, and trigger file download?(如何为 HTTP GET 请求设置标头并触发文件下载?)
                  Adding custom HTTP headers using JavaScript(使用 JavaScript 添加自定义 HTTP 标头)
                  SQL Query DocumentDB in Azure Functions by an integer not working(通过整数在 Azure Functions 中 SQL 查询 DocumentDB 不起作用)
                  Azure Functions [JavaScript / Node.js] - HTTP call, good practices(Azure Functions [JavaScript/Node.js] - HTTP 调用,良好实践)
                  Azure Functions - Import Custom Node Module(Azure Functions - 导入自定义节点模块)
                • <tfoot id='hh0bn'></tfoot>
                    <bdo id='hh0bn'></bdo><ul id='hh0bn'></ul>

                        <legend id='hh0bn'><style id='hh0bn'><dir id='hh0bn'><q id='hh0bn'></q></dir></style></legend>

                          <small id='hh0bn'></small><noframes id='hh0bn'>

                          <i id='hh0bn'><tr id='hh0bn'><dt id='hh0bn'><q id='hh0bn'><span id='hh0bn'><b id='hh0bn'><form id='hh0bn'><ins id='hh0bn'></ins><ul id='hh0bn'></ul><sub id='hh0bn'></sub></form><legend id='hh0bn'></legend><bdo id='hh0bn'><pre id='hh0bn'><center id='hh0bn'></center></pre></bdo></b><th id='hh0bn'></th></span></q></dt></tr></i><div id='hh0bn'><tfoot id='hh0bn'></tfoot><dl id='hh0bn'><fieldset id='hh0bn'></fieldset></dl></div>
                              <tbody id='hh0bn'></tbody>