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

add translations #1

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

ryan2johnson9
Copy link

configure the helper to first try to lookup translations in state.[alpha2].[subdivision key] and default to English

configure the helper to first try to lookup translations in state.[alpha2].[subdivision key] and default to English
For translating of subdivisions on country change, send the locale in the request.
@ryan2johnson9
Copy link
Author

commit 9d8d85a fixes issue with ajax request by sending the locale along so that the translations work in ajax too.

do not use I18n for subdivision names so the source of truth is the Subdivision name in our app that we registered with ISO3166::Data.register, not the translation file - subdivisions do not need translations anyway
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

Successfully merging this pull request may close these issues.

1 participant