The gettext-parser we use generates a nice JSON format. However, it also includes comments, which make up about half of the total JSON file. Since we don't really need this, we should probably strip this out during ember l10n:convert.
A simple regex that seems to fix this is: /"comments": \{([\s\S]*?)\},\s*/gm (replace with '').
The gettext-parser we use generates a nice JSON format. However, it also includes comments, which make up about half of the total JSON file. Since we don't really need this, we should probably strip this out during
ember l10n:convert
.A simple regex that seems to fix this is:
/"comments": \{([\s\S]*?)\},\s*/gm
(replace with''
).