Open nijat13 opened 6 years ago
@nijat13 I've got exactly same issue. Have you managed to find out what the issue was?
Okay, in my case it was the missing defaultLocale
setting.
But in your case (I can see that you've submitted this a few months ago but maybe someone will have a similar issue), I think you need to add a parse
function that will transform your json into a JS object.
Mine looks like this:
parse(data) {
const parsed = JSON.parse(data.toString());
return parsed;
},
Hi, I do have the same problem, any solution?
Thanks.
Hello! I've tried to use this lib in my own project. But basic configuration doesn't work for me. Here's the language files:
locales/en.json
locales/de.json
Here's the
express.js
:This console gives thee
Hello
instead ofHello EN
.Additionally, my
i18n
object looks like this:Thanks in advance!