We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf005d4 commit 93a5141Copy full SHA for 93a5141
test/diretive.test.ts
@@ -178,6 +178,24 @@ test('legacy mode', async () => {
178
expect(wrapper.html()).toEqual('<p>hello!</p>')
179
})
180
181
+test('using in template', async () => {
182
+ const i18n = createI18n({
183
+ locale: 'en',
184
+ messages: {
185
+ en: {
186
+ hello: 'hello!'
187
+ }
188
189
+ })
190
+
191
+ const App = defineComponent({
192
+ template: `<p v-t="'hello'"></p>`
193
194
+ const wrapper = await mount(App, i18n)
195
196
+ expect(wrapper.html()).toEqual('<p>hello!</p>')
197
+})
198
199
describe('errors', () => {
200
test(errorMessages[I18nErrorCodes.NOT_FOUND_COMPOSER], async () => {
201
const i18n = createI18n({
0 commit comments