Language Translations
Socialswap is originally in English, with additional support provided for Spanish, Hindi, Italian, French, Dutch, German, Romanian and Russian.
Last updated
Socialswap is originally in English, with additional support provided for Spanish, Hindi, Italian, French, Dutch, German, Romanian and Russian.
Last updated
Please note that these translations are generated by Google Translate and may vary in quality. You can translate or add any language as you prefer.
Step 1: Navigate to the "Lang" directory located in the root directory of the script.
Step 2: Duplicate the "en.json" file and rename it to your desired language code, for instance, "ru.json".
Step 3: Translate only the values within each key-value pair, ensuring each value remains within double quotes and ends with a comma, except for the last value in the JSON file.
Step 4: Save the translated file in the same "Lang" directory.
Step 5: Open the "Config" -> "locale.php" file.
Step 6: Add the new language code with the appropriate fields ('code', 'display', 'flag'). Below is an example for the Russian language:
Step 1: After completing the steps above and adding your language, navigate to the "config/app.php" file.
Step 2: Locate line 87: 'locale' => 'en',
- change 'en'
to the country code of your desired language. Step 3: Save the changes to the configuration file.