1. Enable Additional Language Packs
Out of the box, Magento comes with English as the default language. To add more languages, you'll need to enable additional language packs.
In your Magento Admin Panel, navigate to Stores > Configuration > Advanced > Developer. Expand the Translate Inline section and enable the Translation Strategy field.
Next, go to System > Tools > Cache Management and clear the cache by selecting all cache types and clicking Flush Magento Cache.
After clearing the cache, you should see additional language packs available under Stores > Configuration > General > Locale Options. Select the desired language packs and click Save Config.
2. Configure Store Views for Additional Languages
To offer your Magento store in multiple languages, you'll need to create separate store views for each language.
Go to Stores > All Stores and click Create Store View. Enter a name for the new store view and select the desired language and locale. Repeat this process for each additional language you want to offer.
3. Translate Content and Products
With your store views configured, you can now translate various parts of your Magento store:
- Static Content: Translate static content blocks, pages, and other content by navigating to the respective content area (e.g., Content > Elements) and switching to the store view you want to translate.
- Products and Categories: To translate product and category information, go to Catalog > Products or Categories, select the product or category, and switch to the appropriate store view to enter translations.
- Attributes and Attribute Sets: Translate product attributes and attribute sets by navigating to Stores > Attributes and switching store views.
4. Configure Language Switcher
To allow customers to switch between languages on your storefront, you'll need to configure a language switcher.
Under Stores > Configuration > General > Locale Options, expand the Locale Options section and set Locale Code to Website. This will allow customers to switch languages at the website level.
Next, go to Content > Elements and create a new content block with the code switch-language
. Add a language switcher widget to this block by clicking Insert Widget and choosing the Language Switcher option.
Finally, add this content block to your storefront theme by modifying the appropriate template file or layout file.
5. Translate Remaining Strings
Some strings and labels in Magento may still display in the default language after completing the above steps. To fully translate these remaining strings, you can use the Inline Translation tool.
In your Magento Admin Panel, navigate to Stores > Configuration > Advanced > Developer and enable Translate Inline. Now, when browsing your store in a non-default language, you'll be able to click on any remaining untranslated strings and enter the translation directly.
By following these steps, you can offer your Magento store in multiple languages, providing a localized shopping experience for your customers and potentially increasing conversions from international markets.