Closed tzyganu closed 10 years ago
@tzyganu please submit a pull request for this feature. Also it should be optional and have a default value if the $module var is empty.
Just saw this line:
$module = (!empty($params['module'])) ? $params['module'] : 'page';
@miguelbalparda See my pull request. I've added other things beside the support for module param. Seamed cleaner that way.
Nice!
In the way is built now all the texts are translated using the
page
module.You should be able to pass a module name to the translate directive:
{{translate text="some text here" module="catalog"}}
This can be achieved by doing this: