rubenv/angular-gettext

loadRemote cant access the .json file

Gordox opened this issue · 0 comments

Hello, I have followed the guide and trying to use the lazy-loader

gettextCatalog.setCurrentLanguage(currentUser.languageid); gettextCatalog.loadRemote("../languages/" + currentUser.languageid + ".json");

My directory hierarchy looks like this
/root/Core/controller
the languages folder is in root and the code above lies in the controller folder

In my network tap I get 302 on the file so my question is what I might do wrong here.
The url it is searching on is www.example.com/languages/en.json So it is looking at the root

Thanks in advance.