0.2.0 • Published 12 days ago

@vxt/directives v0.2.0

Weekly downloads
-
License
ISC
Repository
github
Last release
12 days ago

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>
0.2.0

12 days ago

0.1.1

20 days ago

0.1.0

1 year ago