Adding New Locale is different for SaaS Product having separate Admin Panel and Tenant App.

Note: Replace "promeet.in" with your PromeetSaaS domain.

For Admin Panel

For Tenant Instance / Client Panel

  • Because the new locale or translation will be for all the clients, the process is a bit complex.
  • Login to your server via SSH, run these commands and follow the instructions to add Russian(ru) for example.
  1. Go to your tenant installation
cd /var/www/system.promeet.in
  1. Copy the english locale translation directory to "ru" directory for Russian.
cp -r lang/en lang/ru
  1. Open "database/storage.json" file
nano database/storage.json
  1. In the "database/storage.json" file, add new locale carefully inside 'locales' array without 'is_default' key. Do not change the existing English locale.
{"name":"Russian","locale":"ru","uuid":"ru"}

Save the file with (CTRL+x) -> Press 'Y' -> Enter

  1. Run following command and visit https://demo.promeet.in/cache to clear all the cache
php artisan cache:clear

Now you can go to the "lang/ru" folder and modify the translations of every key inside all the files there.

Always make sure to back it up and not to have any syntax errors in these files.

You might need to clear the cache sometimes, after modifying the translations.