Code Monkey home page Code Monkey logo

country_to_locales_mapping's People

Contributors

ronaldtse avatar skalee avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

country_to_locales_mapping's Issues

Convert CSV to JSON mapping

As title.

Take a hk.json for example. Something like this.

{
  "name": "HK",
  "description": "Hong Kong",
  "locales": [
    {  "language": "zh", "locale": "HK" },
    {  "language": "en", "locale": "HK" },
    {  "language": "zh", "locale": "Hant-HK" },
    {  "language": "zh", "locale": "Hant" },
  ]
}

Revise and improve country to locales associations

From riboseinc/request_info#39:

@skalee wrote:

Regarding mapping quality:

For Poland, this mapping returns pl (Polish), de-PL, yi (Yiddish) as in http://www.i18nguy.com/unicode/language-identifiers.html, which is certainly incorrect (should be pl only).

Everyone in Poland speaks Polish unless he is an immigrant. There are some ethnical groups which have their local languages (notably Silesians speak Silesian โ€“ szl, Kashubs speak Kashubian โ€“ csb, neither of them included on that list!), but they are bi-lingual, and speak Polish fluently. Their languages are regional heritages and are difficult to understand for people living in other parts of Poland. Yiddish is a language of Jewish minority which is practically non-existent in today's Poland, and they also speak Polish. There is some German minority, but I believe they also speak Polish.

Polish is the only language universally understood in Poland. Furthermore, It's more likely that some randomly picked Pole will understand English, French or Russian rather than Yiddish, Silesian, or Kashubian. German is obviously somewhat known but as a foreign language. On streets, you can also hear Ukrainian due to their recent immigration. But they also understand Polish due to historical reasons and general language similarities.

Both CIA World Factbook and Infoplease are more accurate on this topic:

@ronaldtse wrote:

Great to know there are many places that can be improved, especially by people who actually live in the country. Again it points out that this is a complex subject that should be individually considered country by country.

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.