?️ Petite Vue I18n Lite
A super lightweight and minimal plugin that introduces internationalization into your Petite Vue app with a simple API.
? Usage
Then use it in your HTML: <p>{{t('home')}}</p>
You can optionally add a v-t
directive, provided that i18n
is reactive:
Then use it in your HTML: <p v-t="'home'">Home</p>
You can find the current locale using: {{current}}
You can change it using: @click="changeLocale('en')"
? Install
CDN
It will be exposed to global as window.VueI18nLite
? License
MIT License © 2021 Erik Pham & niu tech