GithubHelp home page GithubHelp logo

Locales support about duckling HOT 1 CLOSED

facebook avatar facebook commented on April 25, 2024 3
Locales support

from duckling.

Comments (1)

patapizza avatar patapizza commented on April 25, 2024 1

On another note, there are languages not included in the two-letters ISO-639-1 standard, but have a ISO-639-3 representation (e.g. Filipino).
Some languages that have an ISO-639-1 representation are considered as macrolanguages in ISO-639-3 (e.g. Chinese). Cantonese has no ISO-639-1 representation so we've included Cantonese variations for Time within the Chinese rules. But Cantonese has a ISO-639-3 representation (yue).

From a locale perspective, as Cantonese is an official language in Hongkong and Macau, it is represented as zh-HK and zh-MO.
Locales capture regional particularities of a language. For example, in French the numeral 70 is pronounced "soixante-dix" in France (fr-FR), and "septante" in Belgium (fr-BE) and Switzerland (fr-CH).

To summarize, it seems like we could add ISO-639-3 languages if they don't derive from another ISO-639-1 (macro)language (e.g. fil for Filipino), and support locales as language extensions (e.g. zh-HK/zh-MO for Cantonese, fr-BE for French in Belgium).

Edit: It seems like Tagalog relates to Filipino the same way Castilian relates to Spanish. Tagalog has a ISO-639-1 representation (tg). So let's keep using ISO-639-1 language codes with locales extensions.

from duckling.

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.