Default for pluralization #545
Replies: 1 comment
-
Thanks for your suggestion! Think of this localized string in your code : 'Houses'.
|
Beta Was this translation helpful? Give feedback.
-
Thanks for your suggestion! Think of this localized string in your code : 'Houses'.
|
Beta Was this translation helpful? Give feedback.
-
A locale with pluralization is transformed into a function of the shape
(arg0: string | number | boolean) => LocalizedString
. It would be very convenient to make arg0 optional if it is not used inside the template, and return a default when undefined.This would allow the following:
The obvious question coming to mind now is: What would be the default? I think,
one
is a good candidate.Beta Was this translation helpful? Give feedback.
All reactions