RobustToolbox
RobustToolbox copied to clipboard
List localization
- pull list data from unicode CLDR JSON
- implement CLDR list formatting and gender
- new localization functions:
COUNT(),LIST(), andRECIPROCAL()COUNT()is the list countLIST()formats the list according to the message locale, providedtype,widthwrapperallows items to be wrapped in extra formatting without losing list gender data and is also just syntax sugar for a common pattern
RECIPROCAL()formats a reciprocal/reflexive pronoun for the provided entity or list thereof, i.e.Alice hugged herselfandAlice and Maria hugged each other
- this PR is 50% tests by weight
- also https://github.com/Ygg01/Linguini/pull/60 is needed for
COUNTto work properly with selectors, an xfail test is provided for this
also https://github.com/Ygg01/Linguini/pull/60 is needed for COUNT to work properly with selectors, an xfail test is provided for this
It's currently impossible to update Linguini until https://github.com/Ygg01/Linguini/issues/62 is fixed, fyi.