poedit
poedit copied to clipboard
Add support for JSON Files
Hey there,
premium member here and wanted to edit JSON localization a few days ago. Maybe for future implications. Keep up the great work - nice app!
"JSON file" is something like "XML file" or "text file" - it's not translation format and says nothing about how translations are stored in it (if at all, which is not the case for most JSON files!). You'd have to be more specific about the particular JSON-based translation file formats...
Okay, get it. https://github.com/nielsfaber/alarmo/pull/257/files is a example of the json translation i wanted to do. Used BabelEdit in the end and because it recognized the json format perfectly fine i thought json localizations are always formatted the same.
What should be handled by "JSON support":
- The linked document appears to use Shopify format.
- There's also Jed, which WordPress uses and which is a literal transcription of PO file format.
- React is different too; in its original simple key-value form it is also used by Laravel.
- Angular defaults to XLIFF, but can use JSON too and may also use http://www.ngx-translate.com/
- Flutter ARB
Guess we'll just start with the simple forms and keep adding features incrementally as needed.