Comments (1)
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)
- upgrade countries gem to 3.0 HOT 1
- Wales is not a country? HOT 1
- United kingdom is not listing in the dropdown for Sweden, locale is sv
- How to instruct country select gem to attach only on specific attributes, not each one that consist country? HOT 2
- NoMethodError Error HOT 1
- CI: Matrix updates needed HOT 5
- Gemfile.lock & c: update to 5.0.0 HOT 1
- Feature request: Allow user-configured defaults for "except:" option
- Upgrade countries to v4 HOT 1
- Releases and README versions out of date HOT 1
- Move this repo to countries org? HOT 6
- Show subset of countries in custom order HOT 3
- Detach this fork from rails/country_select HOT 4
- Failure to render in last release HOT 9
- Require country_select_without_sort_alphabetical fails HOT 2
- Duplicate countries for Zulu HOT 1
- Duplicate countries for Zulu HOT 3
- HTML attributes no longer work after upgrade to 9.0 gem HOT 3
- country_select method causing a ton of object allocation in views
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from country_select.