I'm new to VueJS. I'm trying to make a SAP website with multilingual support. I'm using this helper plugin :
Based on this example:
It works good, however how can I extend this to have the language available to multiple components (pages)? Do I really need to use a store for this, from Vuex?
I did the following and it works like a charm.
main.js
:@vue/i18n.js
:You probably won't have the same JSON, so you won't need
format
andpopulateTexts
.Although it is late: 1- When using this package in a project it will be available for all components and pages. 2- Using store is not a must, but it is like data layer that all vars and data collected in and make data management easy.