You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 17, 2022. It is now read-only.
exports[`external ftl file support > works with vue 3 1`] =`
51
-
"import {createHotContextas__vite__createHotContext} from \\"/@vite/client\\";import.meta.hot = __vite__createHotContext(\\"/fixtures/components/external.vue\\");import {FluentResource}from '/@id/@fluent/bundle';
52
+
"import {createHotContextas__vite__createHotContext} from \\"/@vite/client\\";import.meta.hot = __vite__createHotContext(\\"/fixtures/components/external.vue\\");import da_ftl from '/fixtures/ftl/da/components/external.vue.ftl?import';
52
53
import en_ftl from '/fixtures/ftl/en/components/external.vue.ftl?import';
53
-
import da_ftl from '/fixtures/ftl/da/components/external.vue.ftl?import';
54
54
const _sfc_main = {}
55
55
import {toDisplayStringas_toDisplayString, createElementVNodeas_createElementVNode, openBlockas_openBlock, createElementBlockas_createElementBlock} from \\"/@id/vue\\"
56
56
@@ -62,7 +62,9 @@ function _sfc_render(_ctx, _cache) {
exports[`external ftl file support > works with vue 3 script setup 1`] =`
94
-
"import {createHotContextas__vite__createHotContext} from \\"/@vite/client\\";import.meta.hot = __vite__createHotContext(\\"/fixtures/components/external.setup.vue\\");import {FluentResource} from '/@id/@fluent/bundle';
95
-
import en_ftl from '/fixtures/ftl/en/components/external.setup.vue.ftl?import';
96
-
import da_ftl from '/fixtures/ftl/da/components/external.setup.vue.ftl?import';
97
+
"import {createHotContextas__vite__createHotContext} from \\"/@vite/client\\";import.meta.hot = __vite__createHotContext(\\"/fixtures/components/external.setup.vue\\");import en_ftl from '/fixtures/ftl/en/components/external.setup.vue.ftl?import';
@@ -88,11 +102,24 @@ export default new FluentResource(${JSON.stringify(ftl)})
88
102
89
103
constmagic=newMagicString(code,{filename: id})
90
104
91
-
magic.prepend(`${external.locales.map(locale=>`import ${locale}_ftl from '${normalizePath(join(external.ftlDir,locale,relativePath))}.ftl'`).join(';\n')};\n`)
92
-
magic.prepend('import { FluentResource } from \'@fluent/bundle\';\n')
0 commit comments