Reputation: 13
I'm actually working on an nativescript mobile app with vuejs (android app).
I would like use an i18n module in my app but I don't find any Nativescript and Vuejs tutorial to do it.
I have already try some similar tutorials but without success...
Anyone have a tutorial for this issue or some advices to help me ? Or explain me why my request isn't consistent.
Thx for advance !
Upvotes: 0
Views: 1118
Reputation: 21908
While vue-i18next is more Vue way of doing it on Web, if you prefer a native mobile solution, you might be interested in nativescript-localize plugin.
JS
import { localize } from "nativescript-localize";
Vue.filter("L", localize);
Tempalte
<Label :text="'Hello world !'|L"></Label>
<Label :text="'I am %s'|L('user name')"></Label>
Upvotes: 0
Reputation: 2586
There is nothing specific about using an i18n package with NativeScript-Vue. For instance, I am using vue-i18next in my NativeScript-Vue project.
Upvotes: 2