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

I18n Plural #18

Open
byhbt opened this issue Oct 15, 2020 · 0 comments
Open

I18n Plural #18

byhbt opened this issue Oct 15, 2020 · 0 comments
Labels

Comments

@byhbt
Copy link
Owner

byhbt commented Oct 15, 2020

Problem:

translation data {:zero=>"%A, %B %{day_ordinalize}, %Y\n%A, %B %{day_ordinalize},

Solution:

https://github.com/ruby-i18n/i18n/blob/e4ce5e58f0524ae7c34ca94971363e13aa889f36/test/fixtures/locales/plurals.rb
https://makandracards.com/makandra/47056-dealing-with-i18n-invalidpluralizationdata-errors

Lesson:

  • Review the error message over again and again until understand each char - the message is pretty clear.
  • Dig into the log, check for param to understand the context
  • Dig into the gem code
@byhbt byhbt added the Rails label Oct 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant