vue-i18n icon indicating copy to clipboard operation
vue-i18n copied to clipboard

VueI18N is not installed on production server

Open tanyongkuan opened this issue 3 years ago • 5 comments
trafficstars

Reporting a bug?

I did a console.log on app after calling app.use(i18n) and the vuei18n attribute (VUE_I18N) is not in the application which I want to use to merge with my Quasar app extension's i18n.

image

image

I also did use the @intlify/unplugin-vue-i18n implementation (below) based on the solution but it still does not work

image

Expected behavior

This is the expected output which is from the development machine to show that i18n is installed on the application. It contains the global attribute where I can access the messages and do a merge.

image

Reproduction

System Info

I'm using the following for the development. I'm using apache for the server deployment

"quasar": "^2.6.0",
"vue": "^3.0.0",
"vue-i18n": "^9.0.0",
"@intlify/unplugin-vue-i18n": "^0.5.0",
"@quasar/app-webpack": "^3.0.0",

Screenshot

Additional context

Validations

tanyongkuan avatar Aug 01 '22 09:08 tanyongkuan

locked version 9.0.0 9.0.2 is bug

zhoudc1995 avatar Aug 01 '22 09:08 zhoudc1995

I still face the same error after upgrading to 9.2.0, where the VUE_I18N is not in the app.

To elaborate, the local project's I18N is working despite VUE_I18N is not in the app. However the app extension that is consuming the app attribute from the local project does not find VUE_I18N in it.

tanyongkuan avatar Aug 02 '22 02:08 tanyongkuan

Could you give us your minimum reproduction repo, please?

kazupon avatar Aug 03 '22 04:08 kazupon

Could you give us your minimum reproduction repo, please?

Here's the link to the repository. https://github.com/tanyongkuan/testing-project

I have included the console.log in boot/i18n.ts based on the above screenshot given.

tanyongkuan avatar Aug 03 '22 15:08 tanyongkuan