I am having a translation issue where magento generates empty js-translation.json files only. This issue has been reported a number of times:
Github:
https://github.com/magento/magento2/issues/8508 https://github.com/magento/magento2/issues/9073 https://github.com/magento/magento2/issues/4067
Magento.stackexchange / stackoverflow:
Magento 2 - Translations : how does js-translation.json get populated? Mine is empty! https://stackoverflow.com/questions/35876380/magento-2-translating-strings-in-js-ko
(Many more example can be found on google for these or similar.)
The only general solution seems to be to generate the file yourself. Now, It looks like the format described here should work: http://i18njs.com/ , but magento can handle a couple more things, like making translations dependent on modules and such.
Could someone give me a sample of a working js-translation.json file? Just a translatable string or 2 should probably be enough for me to create my own file.