vue-multilanguage | Plugin for multilanguage VueJS | Plugin library
kandi X-RAY | vue-multilanguage Summary
kandi X-RAY | vue-multilanguage Summary
Plugin for multilanguage VueJS 2.0
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of vue-multilanguage
vue-multilanguage Key Features
vue-multilanguage Examples and Code Snippets
Community Discussions
Trending Discussions on vue-multilanguage
QUESTION
I am creating a vue webapp, I have few pages with Dynamic content and also few pages which has mostly static content. I want to move all these static strings to one place.
One option can be to use vue-i18n or vue-multilanguage, these gives support to have content files like this, but I really have no use case of support of multiple languages, so it also seems a bit over kill to me.
Another option can be to have a vuex store for all the strings, vuex I am already using for state management.
What can be good approach to do this.
...ANSWER
Answered 2017-Mar-03 at 07:19You can make an npm module
with JSON files containing your strings
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install vue-multilanguage
MLInstaller: plugin class for install in Vue with Vue.use
MLCreate: class to define acl settings initial: first language, for startup with your app save: save current language in localStorage languages: array with your languages supported
MLanguage: class with language generator, create your language with it create: method for create language based in object param
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page