Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

your startup loads lang[0] if amplifyLanguage is not used #7

Open
Obiwarn opened this issue Aug 20, 2015 · 1 comment
Open

your startup loads lang[0] if amplifyLanguage is not used #7

Obiwarn opened this issue Aug 20, 2015 · 1 comment

Comments

@Obiwarn
Copy link

Obiwarn commented Aug 20, 2015

e.g.

I set lang[1] on startup
your package sets it to lang[0] again

not good

@IstoraMandiri
Copy link
Contributor

All of the UI uses setLanguageAmplify, so the package assumes you're making use of it; it's so when the user refreshes it won't switch their language back.

I'd welcome a PR that adds this support, but it wasn't created with this in mind. To be honest it's extremely simple to implement the UI without this package.

If you really want to force this, you could try this. Haven't tested it though:

Meteor.startup(function(){
  Meteor.startup(function(){
     TAPi18n.setLanguage(x);
  });
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants