How to make the JavaScript strings localizable (translatable)

The js-translation.json file is generated only if there is a language package for the current language.
So you should create a language package for the de_DE.