Internationalization (i18n) in Nuxt
This starter kit uses nuxt-i18n module to provide internationalization (i18n) support for your application. This allows you to easily manage translations and switch between different languages.
The kit ships English (en, default) and German (de). The base messages are in apps/web/layers/core/i18n/locales/. Every optional layer brings its own messages in i18n/locales/{en,de}.json and lists them under i18n.locales in its nuxt.config.ts. Nuxt merges the messages of all layers, so deleting a layer also deletes its translations.
All user-facing strings go through t('...'). Add every key to en.json and de.json of the layer that uses it. A unit test checks that both files have the same keys.
What if I don't need i18n support?
I would highly recommend to not remove the i18n module from your project, even if you don't need it. The i18n module is used in many places in the starter kit, and removing it will require a lot of changes to the code.
Even if you don't want to support multiple languages, you can still use the i18n module to manage your translations. This is especially useful if you want to support multiple languages in the future.
Of course, you can hard code any text in your app, but this is not recommended. The i18n module provides a simple and consistent API for managing translations, and it is much easier to use than hard coding text in your app.
Overview
Optimize images with Nuxt Image and TwicPics, and store file uploads locally or in S3-compatible storage such as Cloudflare R2 with type and size checks.
Overview
Nuxt Starter Kit uses the Nuxt SEO modules for the technical SEO of your app: sitemap, robots.txt, schema.org, Open Graph images and meta tags.