0.2.0 • Published 12 days ago
@vxt/directives v0.2.0
directives
Directives for vxt dev
usage
// main.ts
import vxtDirectives from "@vxt/directives";
const app = createApp(App)
app.use(vxtDirectives)
v-i18n
<!--message got with chrome.i18n.getMessage('optionText') will be set as tag's innerHTML-->
<a v-i18n="'optionText'"></a>
<!--i18n with substitutions (chrome.i18n.getMessage('optionText', 'hello')-->
<a v-i18n="['optionText', 'hello']"></a>
<!--message got with chrome.i18n.getMessage('linkTitle') will be set as tag's title-->
<a v-i18n:title="'linkTitle'"></a>