Appearance
Work with languages
Each store has two sources of translations.
Backend source for:
- CMS translations
- Product and categories
- Routing paths
Frontend source for:
- All static content declared on the frontend app
Configuration
More about backend translations can be found here
For the frontend app we recommend to use vue-i18n
module.
When you are using same domain:
WARNING
Backend languages codes and frontend languages codes must be the same!
www.example.com // GB site
www.example.com/de-DE // DE site
{
i18n: {
vueI18n: {
fallbackLocale: "en-GB",
},
strategy: "prefix_except_default",
defaultLocale: "en-GB",
langDir: "i18n/src/",
locales: [
{
code: "en-GB",
iso: "en-GB",
file: "en-GB.ts",
},
{
code: "de-DE",
iso: "de-DE",
file: "de-DE.ts",
},
],
},
}