You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, getting: translation data {:one=>"Apply to all 1 job.", :other=>"Apply to all %{count} jobs."} can not be used with :count => 0. key 'zero' is missing.
When clicking : for example clicking 0 queued jobs
Because no zero value at apply to all (at any of the languages):
So need to either add zero in all translations languages or adjust line 54 : t ".actions.apply_to_all", count: filter.filtered_count and somehow avoid count being zero
Doing a little research, it seems like the i18n gem asserts pluralize "...will pick the :zero subkey in the special case where count is equal to 0 and there is a :zero subkey present."
😕 So I'm not sure why your application is specifically expecting a zero key. Are there other I18n-related gems that you're using or something that has been patched into your application?
The translation denoted as :one is regarded as singular, and the :other is used as plural. If the count is zero, and a :zero entry is present, then it will be used instead of :other.
Hi, getting:
translation data {:one=>"Apply to all 1 job.", :other=>"Apply to all %{count} jobs."} can not be used with :count => 0. key 'zero' is missing.
When clicking : for example clicking 0 queued jobs
Because no
zero
value at apply to all (at any of the languages):good_job/config/locales/en.yml
Lines 130 to 134 in 7971c8f
So need to either add
zero
in all translations languages or adjust line 54 :t ".actions.apply_to_all", count: filter.filtered_count
and somehow avoidcount
being zerogood_job/app/views/good_job/jobs/_table.erb
Lines 48 to 57 in 7971c8f
The text was updated successfully, but these errors were encountered: