I got many request asking for Tutorial on how to add more languages to TMail or tSMS. As both of my products now share some backend structure, this tutorial will work for both.
So, lets 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
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'],
Goto your website and you will see your new language in the language selector dropdown on top right corner 🙂