For Owen Theme
This page will help you set up multiple languages for Owen theme
1. Update Countries Data
Edit app/data/countries.ts then add all languages that your store supported:
For example:
2. Create Translation Files
Create translation files in app/assets/locales/{language-code}/common.json to add translate text. For example:
3. Modify languages configuration
Update languages.config.ts from root folder of Owen theme to setup all languages for your store:
Import all languages you have created in Step 2.
defaultLng: default language code. Ex 'en'
supportedLngs: all languages code used in your store.
lngResources: list of translation file you have created in Step2.
4. Add country flag images
Update or add new country flag in public/flag/{language-code}.svg
You have completed setting up all languages for the Owen theme.
Last updated