-
Notifications
You must be signed in to change notification settings - Fork 24
Implement multilanguage support in the vue frontend application #73
Comments
We can also use the Joomla way |
I will also support @laoneo way, for the default joomla language files |
I told you @dneukirchen :) |
With plugins like https://github.com/kazupon/vue-i18n we will also use the default joomla language files (.ini´s). I dont like Joomla.JText and i think the technique is not ment to be used with powerful tools like vue, angular and react. It feels more like the quick and dirty solution, but i will give in to the majority. |
The "issue" with Though to be honest, Joomla as it is built isn't really designed to be used with a JavaScript application framework. So none of the existing tooling will just "plug" into a totally new application architecture. There's no winning solution to that issue. |
But are the ini files not automatically loaded on the first page request? And the ajax requests should return only translated data anyway. So why should it be a problem to use JText then from technical point of view? I'm aware that there are better ways to bring in translations, but JText is the Joomla way and there will be a learning curve when we go with the vue approach, so when we can use existing Joomla functionality, then I think it twill make the entrance for others easier. |
I agree with @mbabker, but i think the feature (generate a compiled language string catalogue) is out of the scope of this project and could be a project on its own (especially when you have to find a clean solution for the overloading issue). And for JText vs. vue i18n plugin: Lets discuss this in the next meeting. |
FWIW if there's anyone ever interested in toying with the compiled catalogue idea, this is the rough plugin code I've been playing with. |
What we need to do is to encapsulate that translation stuff into one place in vue. So when we want to change it on some point, then we have one function to change. |
I made a first approach with a mixin which uses JText in pr #100. Later we can change it then to something more sophisticated when there is a need. |
Thanks allon. |
Vue Plugins:
The text was updated successfully, but these errors were encountered: