We will reply within 24 to 48hrs of you opening the ticket.

Okay
  Print

How to add more languages?

How to add more languages is one of the most requested tutorial. As both tSMS and TMail now share some backend structure, this tutorial will work for both.

So, let's get straight to the point. Follow below steps to add more languages OR if you want to update any language translations :

First step is to add a folder under

resource/lang

You will see few language folders which are already created. Go ahead and create a new folder you want. Keep the folder name short, lowercase and without spaces. We will need to specify this name in another file as well to make it come on the main website.

Copy the files from "en" folder to your new folder and now start editing the files in your new folder with your new language strings.

Once you are done, goto config/app.php file and scroll down till you find below line

'locales' => ['ar', 'de', 'en', 'fr', 'hi', 'pl', 'ru'],

Now, add your new folder name in that array. For example, if your folder name is uk-en then following will be the changed line

'locales' => ['ar', 'de', 'en', 'fr', 'hi', 'pl', 'ru', 'uk-en'],

That's it!

Goto your website and you will see your new language in the language selector dropdown on top right corner :)