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
We are migrating a large multi-language project from Vue 2 on webpack to Vue 3 on Vite and we are encountering a problem when loading the translations for each of the components using the tag in it.
These are the node dependencies for the new project:
The message with name ‘forbidden_title’ should display the string ‘You do not have permission’ in the template but we got [intlify] Not found key 'forbidden_title' in 'es' locale messages.
The same happens if we embed the translation strings inside the i18n tag.
Reproduction
The project in its current initial state is in:
git clone [email protected]:SedueRey/portal-ui-vue3-ongoing.git
npm install
npm run dev
You can take a view in home page src/App.vue because the warn also happens with safariButton message, you don't need to configure the whole project
Thank you for your reporting!
I've checked your reproduction repo.
I've noticed that your <i18n src="../locales/auth.i18n.json" /> doesn't specify locale attr.
You need it on i18n custom block.
Good morning
I have updated the main branch in the repository with what was commented in the previous comment (my apologies, I thought that as it had both translations it wasn't necessary) but it still can't find the translation key.
I upload, also, two screenshots
Reporting a bug?
We are migrating a large multi-language project from Vue 2 on webpack to Vue 3 on Vite and we are encountering a problem when loading the translations for each of the components using the tag in it.
These are the node dependencies for the new project:
Y un ejemplo de componente migrado:
Expected behavior
The message with name ‘forbidden_title’ should display the string ‘You do not have permission’ in the template but we got [intlify] Not found key 'forbidden_title' in 'es' locale messages.
The same happens if we embed the translation strings inside the i18n tag.
Reproduction
The project in its current initial state is in:
You can take a view in home page src/App.vue because the warn also happens with safariButton message, you don't need to configure the whole project
Issue Package
unplugin-vue-i18n
System Info
Screenshot
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: