I am new to react with meteor and wishes to use tap:i18n for multiple language support in my project, I have tried to follow https://atmospherejs.com/tap/i18n#readable-syntax and also import i18n, but still getting error ‘Cannot read property setLanguage of undefined’, and I have also tried to use i18n.setDefaultLanguage(‘nl’), but still getting the same error, and I have also used i18n.map(‘en’, {PROJECT_LIST: ‘Project List’,}), but here getting error ‘Cannot read property map of undefined’, but if i donot import i18n, I am getting i18n is not defined, means after importing i18n i have i18n module available, but why I am getting this error , Can someone , please help me on this, also requested you to please share some link of example of using this package with react
For a Meteor + React app, I’d recommend using something like universe:i18n instead. tap:i18n has a dependency on Blaze whereas universe:i18n does not.
Actually, I’m just in the middle of updating the react branch of the todos app to use universe:i18n (for more info see todos issue 104). I should have it done and committed shortly.