Quizier support both ltr and rtl directions, in this article we will explain how to add new Language.

Create Your Language support

First we need to duplicate the base locale folder that you can find under /resources/lang/[en] Simply copy the "en" director and rename it to your desired Language Code. It is recommended to use ISO 639-1 Code for language folder (e.g. French can be named "fr", German can be named "de".)

Now the first thing you need to do is edit the front.php file, you will find the details in file comments as shown in below example.

return [
    | This file contains information of the language.
    | Direction (direction) of language. Pass "rtl" or "ltr"
    | Name (name) Name of language
    | Default (default) yes for default language (note: if you set duplicate then the first one will be used as default.)
    | Make sure there is only one default in all your languages.
    | rtl means right to left
    | ltr means left to right
    | IMPORTANT NOTE: Only use ISO 639-1 Code for language folder
    | ISO Codes list: https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes

    'direction' => 'ltr',
    'name' => 'English',
    'default' => 'yes',

Now open the other files and translate them. After translating and uploading files. Login as Administrator and go to Settings > Advance and click Rebuild Languages and Regenerate Javascript Locale. 


Rebuild Languages will scan all langs under resources and add them to your website and Regenerate Javascript Locale will rebuild Javascript language file.

Congratulations! you have successfully added new Language support on your website.