RobustToolbox icon indicating copy to clipboard operation
RobustToolbox copied to clipboard

List localization

Open sowelipililimute opened this issue 3 months ago • 1 comments

  • pull list data from unicode CLDR JSON
  • implement CLDR list formatting and gender
  • new localization functions: COUNT(), LIST(), and RECIPROCAL()
    • COUNT() is the list count
    • LIST() formats the list according to the message locale, provided type, width
      • wrapper allows 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 herself and Alice and Maria hugged each other
  • this PR is 50% tests by weight
  • also https://github.com/Ygg01/Linguini/pull/60 is needed for COUNT to work properly with selectors, an xfail test is provided for this

sowelipililimute avatar Sep 22 '25 04:09 sowelipililimute

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.

PJB3005 avatar Dec 07 '25 23:12 PJB3005