How to add new languages to OpenCart 3
OpenCart comes installed with English as the default language. But not every OpenCart store is targeted at English-speaking customers or countries and you may be in that category.
In this post you will learn how to add a new language to your OpenCart 3 store.
Step 1 - Visit The OpenCart Marketplace
To download the language you want from the OpenCart store, go to www.opencart.com and click on Marketplace in the top menu.
Step 2 - Search For The Language Pack
Select the language you are looking for. There are both paid and free language packs so decide and choose which pack is right for you. In this example we are using Portuguese (Brazil)
Step 3 - Download The Language Pack
Download the extension: Click on the
Download button, log in if it asks you to, you will be redirected to the login page once logged in. Select the download option related to your version of OpenCart 3.
Important! Do not close this page because there may be some installation information unique to this language pack that you may need in other steps.
Step 4a - Install The Language Pack
Open the download and unzip it's content to your OpenCart folder.
Step 4b - Install The Language Pack
If you are using the OpenCart Installer, the click
Extensions > Installer. In the new page, click
Upload and select the file from your computer.
Extensions > Modifications. Then click the
Refresh button at the top right of the screen.
Step 5 - Log Into Your Admin
Log into your OpenCart Admin Panel. Then navigate to
System > Localization > Languages.
Step 6 - Add Your New Language
Click on the
+ button to add a new language.
Step 7 - Fill In Your Language Settings
Here you will see a list of the installed languages. The information you will need to fill into this section will either be in the file you downloaded or on the documentation page in Step 3.
In this case, we go to the download page, click on the
Documentation button to copy the information below.
- Language Name: is the way you want the language to be written in the language options to customers of your OpenCart Store.
Code: Select your new language entry from the dropdown. In this case it's
- Locale: Like stated above, this information will be available in the documentation included in either the zip file or download page that you kept open in step 3. So check your zip file or the download page.
Sort Order: Select the
Sort Orderthe position you want it to appear in on the language options in the front end of the store. Use numbers only.
Step 8 - Save & Test
Click Save. And you are done. Refresh your store front and you will see the Portuguese option in the list available to your customers.
[LINK]See how to change the default language of your OpenCart 3 store[/LINK]