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

missing timezones #40

Open
akbari10352 opened this issue Feb 21, 2019 · 2 comments
Open

missing timezones #40

akbari10352 opened this issue Feb 21, 2019 · 2 comments

Comments

@akbari10352
Copy link

akbari10352 commented Feb 21, 2019

timezone translations are missing for these timezones:
Chatham Is , Puerto Rico, Cape Verde Is, St. Petersburg, Solomon Is, Marshall Is, Tokelau Is
i checked for de and fr

@gstokkink
Copy link

gstokkink commented Nov 2, 2020

That's because those timezones end with a ., and Rails does not handle those translation keys well. Only solution that works is removing the ending . from all those timezones and map them somehow...

@mattclough1
Copy link

mattclough1 commented Jun 8, 2022

I think I've got a decent workaround for this. Went from:

#{I18n.t(timezone.name, scope: :timezones, default: timezone.name)}

to

#{I18n.t('timezones')[timezone.name.to_sym()] || timezone.name rescue timezone.name}

Or something of that nature. I'm not really a Ruby person, but it works 🤷

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