mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 03:37:56 +01:00
Add custom pluralization rule for Vietnamese (#279)
This commit is contained in:
committed by
GitHub
parent
3910c85898
commit
1d5df21301
@@ -8,7 +8,7 @@ export const getLabel = (
|
||||
attribute ?
|
||||
I18n.t(`activerecord.attributes.${entity}.${attribute}`)
|
||||
:
|
||||
I18n.t(`activerecord.models.${entity}.one`)
|
||||
I18n.t(`activerecord.models.${entity}`, { count: 1 })
|
||||
);
|
||||
|
||||
export const getValidationMessage = (
|
||||
|
||||
@@ -3,4 +3,6 @@ import I18n from "i18n-js"
|
||||
I18n.translations = <%= I18n::JS.filtered_translations.to_json %>
|
||||
I18n.locale = LOCALE
|
||||
|
||||
I18n.pluralization["vi"] = function(count) { return ["other"] }
|
||||
|
||||
export default I18n
|
||||
Reference in New Issue
Block a user