Translating
Simple Commerce is developed in English. However, if you know another language, you're welcome to contribute translations to Simple Commerce.
Text within the Control Panel & any front-end validation messages can be translated.
Configuration
You may read about configuring Statamic to use a language other than English over on the Statamic Documentation.
Translating
In this example, I'm using
fr
as an example locale. You can find a list of all possible locales here.
- In your site, create a
fr.json
file in yourlang
orresources/lang
folder (whichever folder exists). - Inside that file, the format should be like so:
1{2 "English Phrase": "Your Translation"3}
- Next, find all of the translatable strings & translate them in your
fr.json
file. - To contribute your translations back into Simple Commerce, follow these extra steps:
- Fork the Simple Commerce repository
- Create a file in
resources/lang
with the same filename you used in your site (example:fr.json
) - Copy the contents from your local translations file & commit.
- Submit a pull request