News for hackers. Stuff that matters.
Re:Show HN: Localization and translations should be code, no... by azeirah on Tuesday July 05, 2022 @05:17PM (#31993814)
The localization library I use supports most of this. Not all, it's not a general purpose programming language of course, but it supports variables and conditionals, which is basically enough to do almost anything.

https://formatjs.io/docs/react-intl/api#message-syntax

Re:Show HN: Localization and translations should be code, no... by LeviticusMB on Wednesday July 06, 2022 @10:53AM (#32001894)
That's MessageFormat and I think its a pain and severely limited. Maybe it's OK for English, which has really simple grammatical rules, but just add some gender to your plurals and it starts to become very complicated very quick.