-
-
Notifications
You must be signed in to change notification settings - Fork 175
Add docs for switchLocale in view #230
Comments
I don't think this has to be the part of docs. The Also I will never never views to mutate state, this is literally the worst way to do something. One should call |
Can you write example code for usage with switchLocale for view in controller? |
controllerMethod ({ antl, view }) {
antl.switchLocale('fr')
return view.render('some-view')
} NOTE: The |
Wow! It is great! I think otherwise :) |
I will not, since one thing leads to other. If method |
Okay, i'm found now in docs http://adonisjs.com/docs/4.0/internationalization#_context_instance
But it's not explicitly indicated. |
Issue make from https://forum.adonisjs.com/t/antl-view-with-user-locale/462/6
The text was updated successfully, but these errors were encountered: