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

Remove unused pluralisation keys from locale files #2052

Merged
merged 2 commits into from
Mar 18, 2021

Conversation

brucebolt
Copy link
Member

@brucebolt brucebolt commented Mar 17, 2021

In #2045, we updated the plural rules for each language that we support that is not included in the ruby-i18n gem.

This removes the keys that are no longer required in each language from their locale files.

Trello card: https://trello.com/c/lkVB57ri

I have not made any changes to zh-hk and zh-tw as there are problems with the translations, which will be addressed in https://trello.com/c/mbFPEn9h. Also not made any changes to tr as I believe the i18n rules for this could be wrong, so will write a card to look into this.

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

@bevanloon bevanloon temporarily deployed to government-f-remove-unu-yuon5y March 17, 2021 16:06 Inactive
@brucebolt brucebolt force-pushed the remove-unused-plurals branch from 90720b0 to e1f4216 Compare March 18, 2021 09:41
@bevanloon bevanloon temporarily deployed to government-f-remove-unu-yuon5y March 18, 2021 09:41 Inactive
@bevanloon bevanloon temporarily deployed to government-f-remove-unu-yuon5y March 18, 2021 10:14 Inactive
In #2045, we updated
the plural rules for each language that we support that is not included
in the ruby-i18n gem
(https://github.com/ruby-i18n/i18n/blob/master/test/test_data/locales/plurals.rb).

This removes the keys that are no longer required in each language from
their locale files.
@brucebolt brucebolt force-pushed the remove-unused-plurals branch from 4ebaa9a to 31dfc2f Compare March 18, 2021 10:17
@bevanloon bevanloon temporarily deployed to government-f-remove-unu-yuon5y March 18, 2021 10:17 Inactive
In these languages, there is no difference in the singular and plural
forms of words, so Rails only uses the `other` value (according to the
defined plural rules). Therefore removing the unused singular values.
@brucebolt brucebolt force-pushed the remove-unused-plurals branch from 31dfc2f to 2a81e71 Compare March 18, 2021 11:22
@brucebolt brucebolt marked this pull request as ready for review March 18, 2021 11:22
@bevanloon bevanloon temporarily deployed to government-f-remove-unu-yuon5y March 18, 2021 11:22 Inactive
@brucebolt brucebolt merged commit ec5f03b into master Mar 18, 2021
@brucebolt brucebolt deleted the remove-unused-plurals branch March 18, 2021 13:20
1pretz1 added a commit that referenced this pull request Apr 30, 2021
Missing keys autogenerated in the last commit didn't have appropriate
pluralization keys for each language as they were simply copied from the
base locale (en) - `one` & `other`. This commit adds or removes keys
specific to the locale. Work to define each language's pluralization
keys was [done prior][1] and so we could just copy the rules per set
added.

[1]: #2052
1pretz1 added a commit that referenced this pull request May 11, 2021
Missing keys autogenerated in the last commit didn't have appropriate
pluralization keys for each language as they were simply copied from the
base locale (en) - `one` & `other`. This commit adds or removes keys
specific to the locale. Work to define each language's pluralization
keys was [done prior][1] and so we could just copy the rules per set
added.

[1]: #2052
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.

3 participants