Multilingual Support

Change The Language

The default platform language is English but you can translate the platform language as your need. All the language files are in /path/to/your/zCart/resources/lang/ directory. To translate the language you have to copy the en directory and rename it to the language shortcode (Example: en for the English). Then open each file in the directory and make the translation.
 

Warning! Don’t translate variables. Variables are looks like this :variable.
Example: The string “:value/Day” will be “:value/Dia” not “:valor/Dia” in Spanish and “Last :hrs hours” will be “Ultimo :hrs horas” not “Ultimo :hora horas”.

 

When you’re done, open the .env file and update the APP_LOCALE with the directory name of your translation files.

.
.
.
APP_LOCALE=en
.
.
.

That’s it! Now the marketplace should use the new locales.

Was this page helpful?

Leave Comment