vazco / meteor-universe-i18n

Internationalization package for Meteor with React integration.
https://atmospherejs.com/universe/i18n
MIT License
123 stars 32 forks source link

Package doesn't work on macOS #161

Closed Kamran95 closed 2 years ago

Kamran95 commented 2 years ago

meteor-universe-i18n is not working on mac OS instead of returning the language string, it displays the key used to get that string from the config

The issue can be traced by visiting https://devwallet.pylons.tech/ on both mac and windows or ubuntu

piotrpospiech commented 2 years ago

Hi @Kamran95, thanks for your feedback.

https://devwallet.pylons.tech/ is unavailable. Can you also provide some code examples how did you configure meteor-universe-i18n?

kienntk commented 2 years ago

@piotrpospiech : I also get this issue. here is my configuration:

import i18n from "meteor/universe:i18n";

i18n.setLocale('en');
i18n.getLocale(); // en

console.log(i18n.__("common", "userName")); //output is: common.userName

Here is my en.i18n.json file:

{
    "_locale": "en",
    "_namespace": "common",
    "userName": "User Name"
}

Update: follow this comment help me to fix. I need to add import "mypath/en.i18n.json"; .