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

Changed the current parsed locale #6

Closed
mvmaasakkers opened this issue May 8, 2014 · 1 comment
Closed

Changed the current parsed locale #6

mvmaasakkers opened this issue May 8, 2014 · 1 comment

Comments

@mvmaasakkers
Copy link

Hi, I'm want to override the language used in templates in the handler but I can't find out how to do that... I load the default en-US and in this case I want to switch to nl-NL. Can you let me know how I should do that?

@nicksnyder
Copy link
Owner

Please look at this example.

Specifically:

T, _ := i18n.Tfunc("nl-NL")
tmpl.Funcs(map[string]interface{}{
    "T": T,
})

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