Giter Site home page Giter Site logo

navigator.languages about github-i18n-plugin HOT 3 CLOSED

k1995 avatar k1995 commented on July 19, 2024
navigator.languages

from github-i18n-plugin.

Comments (3)

k1995 avatar k1995 commented on July 19, 2024

现在策略是“zh”开头的,都会作为“zh-CN”来处理。
也就是说“中文”,包括“繁体”,都会显示为“简体中文”,你是想达到什么目的?

from github-i18n-plugin.

gcqmkm02 avatar gcqmkm02 commented on July 19, 2024

我的navigator.languages是["tr", "fr", "zh"]
如果这样的话苯教不翻译文章。都是英文的。

from github-i18n-plugin.

gcqmkm02 avatar gcqmkm02 commented on July 19, 2024

我自己变化了。很容易的。只有更新的时候需要在边代码的。
const langs = navigator.languages;
if(langs.includes("zh")) {
lang = "zh-CN";

}

from github-i18n-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.