vue-mini-translate
A copy of i18n
but very, very, very slim and blazingly fast. If you need a simple translation tool and i18n
is too big, use vue-mini-translate
!
Usage
It is very simple to use this package. Follow these steps:
- Install it with the command-line:
npm install vue-mini-translate
- Add the plugin to your app:
Vue
- Add a language with translations:
// small amount of languagethis$mt// bulk importthis$mt
- Set a language (default is 'de')
this$mt
- Get the value
{{$t('test')}} <!-- output: test-text -->
- That's it. This plugin can't do anything else.
Development
Feel free to fork this project and/or contribute to this repository. This codebase will be improved, but no more Features will be active added.