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

Adds plural rules not available in i18n #187

Merged
merged 2 commits into from
Mar 18, 2021

Conversation

MuriloDalRi
Copy link
Contributor

We have these rules in four different apps so moving them to one place
to make it easier to maintain.

https://trello.com/c/eEphXlio/2394-5-check-and-update-rules-for-plural-forms-across-frontend-apps

@@ -0,0 +1,36 @@
module GovukI18n
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should give this an explicit name such as

def plurals
  ...
end

or

PLURALS = ...

Otherwise I don't think it'll be possible to reference this hash from another location.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I'll turn that into a method

We have these rules in four different apps so moving them to one place
to make it easier to maintain.
Copy link
Member

@brucebolt brucebolt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks for making the change

@MuriloDalRi MuriloDalRi merged commit f8c7400 into master Mar 18, 2021
@MuriloDalRi MuriloDalRi deleted the add-plural-rules-for-locales branch March 18, 2021 11:04
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