feat(app): add internationalization (i18n) support #70
+124
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

💬 Description
This PR introduces internationalization (i18n) support to the Nuxt Studio editor, allowing the UI to be translated.
It provides a mechanism for users to add their own translations or override the defaults.
💡 Implementation Details
This PR implements a solution by "injecting" the translations at runtime:
Module (
src/module/src/module.ts):defuto merge defaults (src/app/locales), user-defined locales (app/locales/studio),app.configoptions andnuxt.configoptions.virtual:studio-i18n-messages) to provide this merged JSON.studio-i18n-plugin.client.mjs).Nuxt Plugin (
studio-i18n-plugin.client.mjs):virtual:studio-i18n-messagesbecause it runs within the Nuxt project's context.window.__NUXT_STUDIO_I18N_MESSAGES__.Studio App (
src/app):src/app/src/i18n.tsis refactored into a factory function (createStudioI18n) that accepts amessagesobject.src/app/src/main.ts, duringconfigureApp, now reads the messages fromwindow.__NUXT_STUDIO_I18N_MESSAGES__and passes them tocreateStudioI18nto dynamically create the i18n instance.