Skip to content

Instantly share code, notes, and snippets.

@dorianmariecom
Created January 16, 2022 15:33
Show Gist options
  • Select an option

  • Save dorianmariecom/43a3dcb51ffc8ed1c3e53daef1dad316 to your computer and use it in GitHub Desktop.

Select an option

Save dorianmariecom/43a3dcb51ffc8ed1c3e53daef1dad316 to your computer and use it in GitHub Desktop.
{
en: {
i18n: {
plural: {
keys: [:one, :other],
rule: lambda do |n|
if n == 1
:one
else
:other
end
end
}
}
},
fr: {
i18n: {
plural: {
keys: [:one, :other],
rule: lambda do |n|
if n == 1
:one
else
:other
end
end
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment