Skip to content

pantoken-root / renderers/vue/src / PantokenVue

Μεταβλητή: PantokenVue ​

const PantokenVue: object

Πειραματικό

Το plugin Vue του pantoken: app.use(PantokenVue) ή app.use(PantokenVue, { locale: "hu" }).

Type Declaration ​

install() ​

install(app, options?): void

Παράμετροι ​

app ​

VueAppLike

options? ​
locale? ​

string | LocaleBundle

Επιστρέφει ​

void

Παράδειγμα ​

ts
import { createApp } from "vue";
import { PantokenVue } from "@pantoken/vue";
import "@pantoken/css";

createApp(App).use(PantokenVue).mount("#app");
createApp(App).use(PantokenVue, { locale: "hu" }).mount("#app"); // localized