[Interest] Translating JSON files

Thiago Macieira thiago.macieira at intel.com
Mon Jun 17 22:27:41 CEST 2019


On Monday, 17 June 2019 13:02:13 PDT Mitch Curtis wrote:
> I was hoping to avoid having to duplicate the file, as it would be a
> maintenance nightmare. Though I guess there's not much I can do in JSON
> besides doing some funky string-based syntax to mark translatable strings:
> 
>     "displayText": "tr(Some user-facing text)",
> 
> I can't think of a better solution though.  Switching file formats is also
> not an option at this point.

It's only a maintenance nightmare if you manually edit them. If you always 
generate the translated ones from the .ts or .po file, it's no more of a 
maintenance issue as a .qm or .mo file.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel System Software Products





More information about the Interest mailing list