News for hackers. Stuff that matters.
Re:Show HN: Localization and translations should be code, no... by layer8 on Tuesday July 05, 2022 @04:52PM (#31993541)
…then translators need to be programmers, or vice versa. That may not scale to many languages/large products.

What would be useful is the ability to interactively see a systematic set of examples of what the templates one is editing evaluate to.

Re:Show HN: Localization and translations should be code, no... by LeviticusMB on Wednesday July 06, 2022 @10:06AM (#32001145)
Example parameters for a specific key and the ability to preview the different translations based on those examples is something I wished for.

But since my translations are code, it basically means I would have to invoke a debugger on the full program, so that's a drawback.

On the other hand, since my translations are code I suppose I could just add something like a unit test or something.