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
import { createApp } from 'vue'
import { createI18n } from 'vue-i18n'
import App from './App.vue'
import router from './router'
import store from './store'
createApp(App).use(store).use(router).use(createI18n()).mount('#app')
Append the conent below to App.vue
<i18n>
{
"en": {
"Home": "New Home"
}
}
</i18n>
change <router-link to="/">Home</router-link> to <router-link to="/">{{ $t('Home') }}</router-link>
Run, and no error currently npm run serve
Change the i18n content, save and recompile, a error will come out
Reporting a bug?
I'm using the latest v9 vue-i18n, in my vue file
A compile error will occur
Syntax Error: Final loader (./node_modules/@intlify/vue-i18n-loader/lib/index.js) didn't return a Buffer or String
If I remove the
|
, no error come outBy the way, [email protected] dose not have this problem.
Expected behavior
Support | in i18n content.
Reproduction
Use vue-cli 5 to create a new project
vue create i18n9test
Install latest vue-i18n and @intlify/vue-i18n-loader
change
<router-link to="/">Home</router-link>
to<router-link to="/">{{ $t('Home') }}</router-link>
Run, and no error currently
npm run serve
Change the i18n content, save and recompile, a error will come out
System Info
Screenshot
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: