Thanks for your reply,
I did as you posted above:
/* in distribution mode load through web service */
if (1) { // enable to test localization in dev env
// if (window.location.href.indexOf('dist') > -1) {
pepper.getLocalization(lang, function(e){
var d = e['studiolite'];
$.extend(intermediateLangData, d);
notifyDelegateLanguageLoaded(intermediateLangData);
return loadLanguage(pkg, lang, level + 1);
});
} else {
// in development mode load through local file (english only supported)
lang = 'en';
file = 'local-en.json';
var ajaxOptions, errorFunc, successFunc;
etc.
Besides, I can see all the flaggs and languages in the drop down menu. In the studiolite.html there already are tags like the one you posted under:
<!-- Language selection template -->
But, whenever I choose a language I am still able to choose languages I have not put in the _lang folder. Currently I only have local-en.json (already in there) and added a local-nl.json for the translation. But whenever I choose another language, for instance France, I still see the France translation from the central DB. Also the dutch language is still from the DB, not locally. I think the localization is not working. Also I tried editting the local-en.json file, but this won't make any changes to the text either.
Please advice.