-
Notifications
You must be signed in to change notification settings - Fork 56
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
component based translations #34
Comments
Hi @geertolaerts, This is a very good idea indeed and not currently possible. We could add a new method this.$i18n.merge('en', english), that would allow merging component based location information. That should actually be not to hard to implement. |
cool, i look forward to it. |
There is a new release v1.7.0 that should enable the functionality you requested. We ended up modifying the Please try it out and let me know if it works for you. |
Nice,
and then |
only shame is that if you do it in the |
That is correct. The best way would probably be to have a webpack plugin that would strip out all respective translations and pack them in a single file for fetching. This could be further optimized to create a structure that can easily passed on to translators. We have already done some thinking in this direction. However, given our current workload, it will probably take some time until we can focus on such advanced features. |
yeah, |
Hej,
I was wondering if somebody like component based translations would be possible. What i mean by this is that each component/page would add its own translation, this would keep the separation much cleaner. So each component would do
and in the component/page
I quickly tried this out now, but it seems when you add with the same key, they don't get merged but overwritten.
The text was updated successfully, but these errors were encountered: