Giter Site home page Giter Site logo

Sensitiveness about country_select HOT 1 OPEN

frankapimenta avatar frankapimenta commented on August 21, 2024
Sensitiveness

from country_select.

Comments (1)

pmor avatar pmor commented on August 21, 2024

All the data comes from the countries gem, and that gem does have a lot of translations, but it doesn't specifically deal with regional locales.

The base country data for Switzerland is https://github.com/countries/countries/blob/832ac5afd68ff467758f722fc6f330a8831b75ee/lib/countries/data/countries/CH.yaml and it includes the list of languages, but not the actual locale identifiers.

I'll add a ticket to countries to add the locales, it makes sense to have this data.

I don't know where those locales you mention are coming from, because the proper identifiers should be fr-CH, de-CH and it-CH. The format is <language>-<countryCode>.

If you configure I18n.available_locales or directly for the countries gem (see here) and add :fr, :de, :it then the translation data for these languages will be loaded.

from country_select.

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.