Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to handle multiple variations of the same language? #133

Open
coffeebite opened this issue Apr 8, 2015 · 4 comments
Open

How to handle multiple variations of the same language? #133

coffeebite opened this issue Apr 8, 2015 · 4 comments

Comments

@coffeebite
Copy link

I am supporting multiple versions of Portuguese in my app -> pt-PT and pt-BR.

How would one handle this situation? The plugin seems to support 2 letter language names only.

@grosser
Copy link
Owner

grosser commented Apr 12, 2015

pt_PT should work

@coffeebite
Copy link
Author

Thanks.


Love, laughter
Nitesh

On Sun, Apr 12, 2015 at 8:18 AM, Michael Grosser [email protected]
wrote:

pt_PT should work

Reply to this email directly or view it on GitHub:
#133 (comment)

@kalsan
Copy link

kalsan commented Feb 1, 2023

This does not appear to work for Rails 7. My config is:

# config/initializers/fast_gettext.rb

FastGettext.default_available_locales = %w[de-CH]
FastGettext.default_text_domain = 'app'
# locale/de_CH/app.po

msgid "Configuration"
msgstr "Konfiguration"
rails c
Loading development environment (Rails 7.0.4)
irb(main):001:0> I18n.locale
=> :"de-CH"
irb(main):002:0> _('Configuration')
=> "Configuration"
irb(main):003:0> I18n.t 'Configuration'
=> "translation missing: de-CH.Configuration"
``

@kalsan
Copy link

kalsan commented May 8, 2023

Hello, is there any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants