Built-in locales
The following locales are included out of the box:| Code | Language |
|---|---|
en | English |
es | Spanish |
fr | French |
de | German |
zh-CN | Chinese (Simplified) |
Publishing language files
Run the publish command to copy all language files into your application’slang/vendor/subscribd/ directory:
Directory structure
Each locale is a subdirectory underlang/vendor/subscribd/. After publishing, the structure looks like this:
Adding a new locale
Publish the language files
If you have not already published, run the publish command above. This gives you the English source file to copy from.
Create a new locale directory
Add a directory named after the locale code under
lang/vendor/subscribd/. For example, for Portuguese:Translate the strings
Open
lang/vendor/subscribd/pt/subscribd.php and replace each English value with the translated string. The keys must remain unchanged.If a string is missing from your locale file, Subscribd falls back to the English (
en) translation automatically.