We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hiya all, we would like to use per-component translations / a custom block in our Nuxt3 project:
/locales
messages
@intlify/vite-plugin-vue-i18n/messages
Please find screenshots & snippets:
vue dev tools
component.vue
<i18n> { "en": { "pageTitle": "Mission and Vision" }, "de": { "pageTitle": "Auftrag und Visionn" } } </i18n> <script setup> import { useI18n } from 'vue-i18n' import messages from '@intlify/vite-plugin-vue-i18n/messages' const { t } = useI18n({ // `locale` inherit from global scope inheritLocale: true, }) console.log(messages) </script>
nuxt.config.ts
intlify: { localeDir: 'locales', // set the `locales` directory at source directory of your Nuxt application vueI18n: {}, },
npx nuxi info
------------------------------ - Operating System: `Darwin` - Node Version: `v16.14.0` - Nuxt Version: `3.0.0-rc.1-27520426.ab3971d` - Package Manager: `[email protected]` - Builder: `vite` - User Config: `buildModules`, `modules`, `css`, `build`, `vite`, `strapi`, `intlify`, `telemetry` - Runtime Modules: `@intlify/[email protected]`, `@formkit/[email protected]`, `@nuxtjs/[email protected]` - Build Modules: `@vueuse/[email protected]` ------------------------------
The text was updated successfully, but these errors were encountered:
Duplicate: #84
Sorry, something went wrong.
No branches or pull requests
Hiya all, we would like to use per-component translations / a custom block in our Nuxt3 project:
/locales
already in use.messages
but I cannot work out how to access them.@intlify/vite-plugin-vue-i18n/messages
and found themessages
defined in/locales
but nothing from the custom block.Please find screenshots & snippets:
vue dev tools
component.vue
nuxt.config.ts
Environment
npx nuxi info
The text was updated successfully, but these errors were encountered: