Well, I did it. You must set set root
to false
in the base i18n.js file:
define({ "root": false, "de": true, "en": true });
In this case, only the above json will be displayed in your optimized version. And after loading require.js decide which langauge to load. Please note that you have lost the default language, and you must definitely set all the properties in all your languages.
source share