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

i18n-abide support or something like this. #95

Closed
Dexus opened this issue Sep 25, 2013 · 3 comments
Closed

i18n-abide support or something like this. #95

Dexus opened this issue Sep 25, 2013 · 3 comments

Comments

@Dexus
Copy link

Dexus commented Sep 25, 2013

Hi, i look for a translation plugin, that i can use inside the templates.

Have someone a tip for me?

@seblucas
Copy link

Hi,

The translated strings are in my json data so I don't need anything in the template. Not a real answer but it's easier to do for me.

@Dexus
Copy link
Author

Dexus commented Sep 30, 2013

Current i use ejs that can access locals and the functions in it. but i need it in the same way for doT...

i use i18n-abide, with ejs it work perfect. but the speed of doT is better, so i try to switch to doT, if i can get it to run... currently i'm not success... :(

@epoberezkin
Copy link
Collaborator

epoberezkin commented Oct 30, 2016

You can use any functions in doT templates.
Helper functions can be passed to templates in several ways as explained in #172 (comment)

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

3 participants