SocialSwap Documentation
  • Start
    • Introduction
    • Requirements
    • Installation
    • Purchase Code
  • Updates
    • Update 1.0.7
    • Update 1.0.6
    • Update 1.0.5
    • Update 1.0.4
    • Update 1.0.3
    • Update 1.0.2
    • Update 1.0.1
  • How it Works
    • Dispute Overview
    • Listing Overview
    • Offer Overview
    • Message Overview
    • Subscription Overview
    • Plan Overview
  • Database Setup
    • phpMyAdmin MySQL DB Setup
  • Cloud Storage
    • AWS Storage Setup
      • Create AWS Account:
      • Create IAM User
      • Create S3 Bucket
      • Configure S3 Bucket
    • Wasabi Storage Setup
    • CloudFlare Storage Setup
  • PAYMENT GATEWAYS SETUP
    • Paypal Setup
    • Stripe Setup
    • RazorPay Setup
    • Paystack Setup
    • Flutterwave Setup
  • SUBSCRIPTION PLANS
    • Subscription Plan
      • Paypal Plan ID
      • Stripe Plan ID
      • Razorpay Plan ID
      • Paystack Plan ID
      • Flutterwave Plan ID
  • SMTP SETUP
    • SMTP Configuration
  • SOCIAL MEDIA LOGIN
    • Google Login
    • Facebook Login
  • One Signal
    • One Signal Setup
  • TAWK.TO SETUP
    • Tawk.to Setup
  • GOOGLE SETTINGS
    • Google Maps
    • Google Analytics
    • Google reCaptcha
  • TRANSLATE INTERFACE
    • Language Translations
  • CRON JOB SETUP
    • CRON Job
  • Customization
    • Files Structure
    • Frameworks
  • Troubleshooting
    • Troubleshooting
  • Changelog
    • Initial Release v1.0
Powered by GitBook
On this page
  • How to Translate:
  • Set as Default Language
  1. TRANSLATE INTERFACE

Language Translations

Socialswap is originally in English, with additional support provided for Spanish, Hindi, Italian, French, Dutch, German, Romanian and Russian.

PreviousGoogle reCaptchaNextCRON Job

Last updated 10 months ago

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.

How to Translate:

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:

'ru' => [
    'code' => 'RU',
    'display' => 'Русский',
    'flag' => 'ru'
],

Set as Default Language

How to set as Default 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.