marhali / easy-i18n

This is a IntelliJ IDE based plugin for internationalization. Supports the most common translation file types.
MIT License
80 stars 25 forks source link

File structure json5 for .json files #305

Open hahn-kev opened 1 year ago

hahn-kev commented 1 year ago

We've got some json files that we treat as json5, but they're still just en.json and the extension doesn't like that. It'll read the files just fine, but when I modify one it'll write out a file en.json5 even though it's reading en.json, it sounds like the file writer isn't following the pattern *.json and just always writes out .json5 files. Can this be changed?

marhali commented 10 months ago

When the translations are transformed back into the respective file format, information such as comments would be lost anyway.

Apart from the comment function, why should normal json files be treated as json5?

hahn-kev commented 10 months ago

We're using the multi line string feature in json5 as some of our translations are quite long and some team members edit the files manually or use vscode.