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

[P4-463] Shared i18n module #170

Merged
merged 6 commits into from
Jul 30, 2019
Merged

[P4-463] Shared i18n module #170

merged 6 commits into from
Jul 30, 2019

Conversation

teneightfive
Copy link
Contributor

This change moves the i18n module definition to a shared file so that it can be used within other parts of the application. At the moment it is only exposed on the request object.

This change includes smaller commits which replace existing uses of labels within the app, mainly within presenters.

Moving this library to the config area means it can be shared
by other parts of the application.
@teneightfive teneightfive self-assigned this Jul 30, 2019
This uses the config i18n library to get translations for the
card labels.
This uses the shared i18n library to translate the labels
on the move summary component.
This uses the shared translation instance to translate the labels
used in the CSV download.
This uses the shared i18n library to translate the labels defined
in this presenter.
common/presenters/moves-to-csv.js Outdated Show resolved Hide resolved
common/presenters/moves-to-csv.js Outdated Show resolved Hide resolved
@codeclimate
Copy link

codeclimate bot commented Jul 30, 2019

Code Climate has analyzed commit 49cd2f8 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 98.1% (0.0% change).

View more on Code Climate.

@teneightfive teneightfive changed the title Shared i18n module [P4-463] Shared i18n module Jul 30, 2019
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.

2 participants