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

Can't get it to work #19

Closed
timbrandin opened this issue May 4, 2015 · 3 comments
Closed

Can't get it to work #19

timbrandin opened this issue May 4, 2015 · 3 comments

Comments

@timbrandin
Copy link
Contributor

I've tried added both:

getUserLanguage = function () {
  return "fr";
}
TAPi18n.setLanguage(getUserLanguage());

or

TAPi18n.setLanguage("fr");

Doesn't matter what I do, I still get the english labels for the form validation of E-mail.

I'm rendering the E-mail input field with:

{{> afQuickField name='Email' tabindex='3' }}

Any ideas?

@gwendall
Copy link
Owner

gwendall commented May 4, 2015

I will document it, but you also need to add/configure tapi18n in your app itself, and add a json file (even empty) for each language you want to make available - this is the way tapi18n seems to be designed. Have you already included an sv.i18n.json file in your project?

Ref: TAPevents/tap-i18n#67

@timbrandin
Copy link
Contributor Author

I figured that out too, simple mistake. Would be nice with a simple "Notice! tap-i18n needs to configured in the root..." :)

Cheers for being so quick on responding!

@gwendall
Copy link
Owner

gwendall commented May 4, 2015

You're welcome! Yup, will do that.

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