InstaHaul
  • Introduction
  • Usage Flows (FlowCharts)
  • Firebase
    • Firebase
    • Firebase firestore database
    • Firebase Security
    • Firebase Storage
    • Firestore indexes
    • Chat & Live tracking
  • Backend
    • Prerequisite
    • VPS/Shared Hosting
    • Installation
    • Composer & Node Packages
    • Database Configuration
    • GUI Installer
    • Timezone
    • Firebase
    • Web Notification
    • Firebase Forgot password
    • Change Backend Color
    • Reskin Mobile App
    • Terminal
      • Commands
    • Screenshots
    • Order schedule
    • CRON job
    • Clear Data (Users/Orders etc)
    • Email Server Settings
    • SMS Gateway
    • Payment Gateways
    • Webhooks - Payment gateway
    • Language / Translation
    • HOW TO UPDATE
    • In-App Live chat/support
    • Geocoding and Place search
    • Features
      • Firebase/Notification Delay
      • Fleet Management
      • Loyalty points
      • Home Screen Design
      • Featured Vendors
      • Trip recalculation/Outstanding payments
      • Switch between Taxi/Regular Driver
      • Data Translation - Backend
  • Flutter App
    • Getting Started
    • Steps
    • Directory Structure
    • Change App Name & ID
    • Change App icon & splash
    • App Color / Theme
    • Connect To Backend
    • Firebase
    • Firebase Auth - Phone
    • Firebase Phone OTP - Android
    • Firebase Phone OTP - iOS
    • Firebase Notification iOS
    • Share link - Firebase dynamic link
    • Social Media Login
      • Google login
      • Facebook Login
      • Sign-In with Apple
    • Google Map
    • Change App Language
    • Notification Sound
    • Custom Translation
    • Change App Font
    • Running on VS Code
    • Running on Android Studio
    • Generate Android Release App
    • Upload to Apple App Store
    • Screenshots
  • Demo Accounts
  • FAQs
    • Backend Image not working
    • Backend Backup not working
    • Upgrade without losing data
    • Backend Rollback
    • Blank Home screen
    • Custom Token
    • Product price zero(0) in details
    • Auto-cancel Not working
    • Pharmacy vendor
    • Vendor default rating
    • App logins
    • Error ==> type 'String' is not a subtype of type 'int'
    • NDK version error
    • Push Notification
    • Delivery Zone Map error
    • HOW TO UPDATE ADMINEND
    • Driver app rejected by Google
    • Cron job error
    • Auth pages Not working - App
  • HOW-TO
    • Onboarding Settings
    • Earning
      • Drivers
    • Enforce CASH Payment For Delivery Fee Only
    • System Contact Email
    • Driver Matching Flow
  • Extensions
    • Driver tracking extensions
    • Paymongo Gateway
    • Mercadopago Gateway
    • Nagad [Bangladeshi]
    • Instamojo - Payment
    • Paytrail
    • Paymaya Gateway
    • Emailer
    • External Notifier
      • Slack Setup
      • Telegram Setup
  • Upgrades
    • How to update
    • Important: Backend VPS/Shared hosting
    • 1.0.1
    • 1.1.00
    • Change logs
Powered by GitBook
On this page
  • WHERE TO FIND THE LANG FOLDER
  • UPDATE THE CUSTOM LANGUAGE
  • ADD NEW LANGUAGE
  1. Backend

Language / Translation

PreviousWebhooks - Payment gatewayNextHOW TO UPDATE

Last updated 1 year ago

The system comes pre-translated with few languages:

  1. English

  2. French

  3. Spanish

  4. Arabic

  5. Portuguese

  6. German

There are cases where the some words might not be fully translated to the native language as Google translate was used.

WHERE TO FIND THE LANG FOLDER

  • Now go to the lang folder. This folder can be found in the resources folder of the backend.

UPDATE THE CUSTOM LANGUAGE

If you want to update the words on the sentences that were transalate to the sentence of your liking. Follow the steps below.

For this example, we would be assuming you want to correct some sentences in french.

  • Follow the instructions above to locate the lang folder

  • Inside the lang folder, you will see files with .json extension.

  • In our case we want to update some words/sentence in french, so open the file matching with your language. E.g en.json is for english, fr.json is for french, ar.json is for arabic etc.

  • After opening the file, you will have just change the words or sentence of your choice. Then save the file

ADD NEW LANGUAGE

Here is how to add a new language to the backend yourself.

  1. Follow the instructions above to locate the lang folder

  • Inside the lang folder, you will see files with .json extension.

  • Create a new file that ends in.json, make sure the file matches with your language 2-letter code. E.g en.json is for english, fr.json is for french, ar.json is for arabic etc.

  • After opening the file, you can open the whole content of the en.json file into the newly create file.

  • Then start translating each value in the new .json file to that of your choice.

  • Then save

Now you have to let the backend know a new language has been added.

  • Go to backend.php file. Here is the file path config/backend.php

  • Open the file the file. You will find sub-arrays languages & languageCodes

  • Add you language name to the bottom of the languages array

 "languages" => [
        "English",
        "French",
        "Spanish",
        "Korean",
        "German",
        "Portuguese",
        "Arabic",
        "Hindi",
        "Turkish",
        "Russian",
        "Burmese",
        "Chinese",
        "Japanese",
        "YOUR LANGUAGE NAME"
 ],
  • Add you language code to the bottom of the languageCodes array

 "languageCodes" => [
        "en",
        "fr",
        "es",
        "ko",
        "de",
        "pt",
        "ar",
        "hi",
        "tr",
        "rus",
        "my",
        "zh",
        "ja",
        "YOUR LANGUAGE CODE"
    ],
  • Then save

After following the steps above, you should now have your new language available for selection in the language settings section in the backend