Reputation: 243
I am currently working on a project which is based on Symfony with parts in Vue.js.
Currently the translation of Symfony parts is managed with its internal module which uses .xlf files
For Vue.Js parts I thought I used Vue i18n. However, it does not handle .xlf files, so you should have 2 separate translation files.
Despite my research I can not find anything that could allow to have only one common file for the translation.
Upvotes: 0
Views: 406
Reputation: 1589
You may take a look at BazingaJsTranslationBundle: https://github.com/willdurand/BazingaJsTranslationBundle, and this issue https://github.com/willdurand/BazingaJsTranslationBundle/issues/276 if you use Webpack.
Another solution is to use a separate translation file for the frontend part, depending on how different is your frontend from your backend.
Upvotes: 0