-
Notifications
You must be signed in to change notification settings - Fork 60
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
res.locals
is not by default accessible within the executing context
#55
Comments
What i18n functions are you trying to use? |
I am trying to use function There is i18n module: https://github.com/mashpie/i18n-node In ejs view i can use it like that: <%= __('Hello') %> but in vash view i need to access function @model.__('Hello') Is using |
Vash doesn't have any knowledge of the There's another option though. You could attach |
Oh, thank you a lot, man! This is really cool tip. I missed one important point though. |
res.locals
is not by default accessible within the executing context
I'll try to look into adding |
How can I use app.locals or functions added to the model I am passing to the render method? |
Any progress on this issue? |
Can't use i18n functions in vash view just like that:
Any workarounds?
The text was updated successfully, but these errors were encountered: