0.2.0 • Published 1 year ago

@vxt/directives v0.2.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year 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

1 year ago

0.1.1

1 year ago

0.1.0

2 years ago