Skip to content

Conversation

@matyikriszta
Copy link
Contributor

@matyikriszta matyikriszta commented Dec 12, 2017

Description

This PR is the beginning of the internationalization work as per #173. I have added support for en, fr and de translations and it currently supports the French translation of the code of conduct (all other pages fall back to the English version for now). I have decided to go with the codebar.io/locale/example construct and use scoped routes. I have added a set_locale method to the application_controller which is required to set the locale. The problem is currently only the code-of-conduct route is wrapped in a scope. set_locale works fine on this URL, e.g. when I change codebar.io/en/code-of-conduct to codebar.io/fr/code-of-conduct it correctly serves the French version, but on all other URLs it appends a ?local=en param to the URL. I would like all other URLs to fall back onto the English version and for the app not to append the param to the URLs. Not sure how to achieve this exactly.

Status

Ready to Review

Related Github issue

#173

@coveralls
Copy link

coveralls commented Dec 12, 2017

Coverage Status

Coverage decreased (-0.1%) to 89.518% when pulling f74d3d8 on feature/internationalization into 92e94bc on master.

@matyikriszta
Copy link
Contributor Author

matyikriszta commented Jan 9, 2018

@despo this is the localization/internationalization work I have started. I've left you a question in the PR description above.

@matyikriszta matyikriszta force-pushed the feature/internationalization branch from eb8c3f7 to df86629 Compare May 24, 2018 16:57
@matyikriszta matyikriszta requested a review from despo May 24, 2018 18:13
@matyikriszta
Copy link
Contributor Author

matyikriszta commented May 24, 2018

@despo this PR is currently on 🔥 as tests are failing left and right

@despo despo force-pushed the feature/internationalization branch from c87cb98 to f74d3d8 Compare July 25, 2018 18:19
@despo despo merged commit 75e9bf0 into master Jul 25, 2018
@despo despo deleted the feature/internationalization branch July 25, 2018 18:31
MarckK pushed a commit to MarckK/planner that referenced this pull request Dec 14, 2018
mroderick added a commit to mroderick/codebar-planner that referenced this pull request Aug 27, 2025
The files were added in
_ codebar#647
- codebar#813

But has not been put to use.

Once we're at Rails 8, we can re-visit if we want to implement
localisation. I'm sure things have moved forwards since this was
introduced in 2018.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants