quasarframework / quasar

Quasar Framework - Build high-performance VueJS user interfaces in record time
https://quasar.dev
MIT License
25.97k stars 3.52k forks source link

I18n not working for mode/bex #16025

Open ttquoccuong opened 1 year ago

ttquoccuong commented 1 year ago

What happened?

i18n not working in mode/bex

What did you expect to happen?

Warning appear in chrome extensions and i18n return message key

[intlify] The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return 'failed'.

Reproduction URL

https://stackblitz.com/edit/quasarframework-atdtac?file=src%2FApp.vue

How to reproduce?

  1. Create a Quasar project: yarn create quasar with vite, typescript, i18n, axios, pinia, eslint, composition api with script setup
  2. Add mode bex: quasar m add bex
  3. Run dev: quasar dev -m bex

Other mode still working except mode/bex. A warning appear.

[intlify] The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return 'failed'.

and i18n not working.

A Reproduction URL not required because this run in chrome extensions

Flavour

Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)

Areas

BEX Mode

Platforms/Browsers

Chrome

Quasar info output

No response

Relevant log output

No response

Additional context

No response

dongwa commented 1 year ago

Change your quasar.config.js like this:

Q_{TK(`1WWZTKTFDKDWGXXE_tmb