modules: [ [ 'nuxt-i18n', { treeshake: true, vueI18nLoader: true, locales: ['en', 'ko'], defaultLocale: 'ko', vueI18n: { fallbackLocale: 'ko' }, locales: [ { code: 'en', iso: 'en-US' }, { code: 'ko', iso: 'ko-KR' } ] } ] ], i18n: { locales: ['en', 'ko'], defaultLocale: 'ko', vueI18n: { fallbackLocale: 'ko' } },
Options
code(required) - unique identifier of the locale
iso(required when using SEO features)
per component
<i18n></i18n>
api doc
API Reference
localePath Returns localized path for passed in route. If locale is not specified, uses current locale. See also Basic usage - nuxt-link. switchLocalePath Returns path of the current route for specified locale. See also Basic usage - nuxt-link. See type definition for Location. getRouteBaseName Returns base name of current (if argument not provided) or passed in route.
https://i18n.nuxtjs.org/api
github
nuxt-community/i18n-module
i18n for your Nuxt project Integration with vue-i18n Automatic routes generation and custom paths Search Engine Optimization Lazy-loading of translation messages Redirection based on auto-detected language Different domain names for different languages Storing current locale and messages with Vuex Firstly, you need to add nuxt-i18n to your Nuxt config.
https://github.com/nuxt-community/i18n-module

Seonglae Cho