Replies: 1 comment
-
I don't quite understand your question, it's possible to configure an array of locale message files, these merge/override each other in the way you describe. See https://i18n.nuxtjs.org/docs/guide/lazy-load-translations#multiple-files-lazy-loading for details, let me know if you have any questions! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a Nuxt 3 project that's using @nuxtjs/i18n v8.2.0) and I'm trying to create an override system that allows tenants to override the existing locale strings in the application by merging the existing locale file with a tenant specific override file.
I have a system that works currently that uses an
i18n.config.ts
file that manually imports each file I need. The imports use an import alias that I've defined in mynuxt.config.ts
(@Tenant).How do I do this more efficiently so that I dynamically import all the locale files and associated override files automatically rather than manually importing and merging each locale file and creating the final
messages
object in thei18n.config.ts
?Folder structure:
Beta Was this translation helpful? Give feedback.
All reactions