poedit icon indicating copy to clipboard operation
poedit copied to clipboard

Add support for JSON Files

Open mattexpa opened this issue 2 years ago • 3 comments

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!

mattexpa avatar Aug 03 '21 15:08 mattexpa

"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...

vslavik avatar Aug 03 '21 15:08 vslavik

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.

mattexpa avatar Aug 03 '21 22:08 mattexpa

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.

vslavik avatar May 12 '22 17:05 vslavik