UltimatePOS

  1. Home
  2. Docs
  3. UltimatePOS
  4. Settings
  5. Setting default Language, Changing Language preference and Adding/Editing Translations

Setting default Language, Changing Language preference and Adding/Editing Translations

Video:

Setting default System Language

By default, system is configured to work in English. But you can change the default language. To change the default language follow the below steps:

  1. Open .env file
  2. You will find a configuration “APP_LOCALE=en” below APP_URL. If you don’t find it then add the configuration  APP_LOCALE=en below APP_URL
  3. Change the value of the above key to your desired language as per the list given below
    ‘en’ => ‘English’,
    ‘es’ => ‘Español – Spanish’,
    ‘sq’ => ‘Shqip – Albanian’,
    ‘hi’ => ‘हिंदी – Hindi’,
    ‘nl’ => ‘Dutch’,
    ‘fr’ => ‘Français – French’,
    ‘de’ => ‘Deutsch – German’,
    ‘ar’ => ‘Arabic – العَرَبِيَّة’Or if you have added a new language then add the language ISO code.

Changing your Language Preference

To change your display language go to “Profile -> My Profile -> Language” 

Select the language you want to use and save it. This will change all texts to your preferred language.

Editing existing translations

Sometimes the translations can be improved to make it better understandable.

  • To edit existing language translations – go to resources/lang/{language_iso_code}/
  • For modules: To Add/Edit transactions go to Modules/{Module_name}/Resources/lang/{language_iso_code}
  • Here you will find files almost grouped based on the pages. Edit the string you want to change and save it.
  • If you make improvements to the language file, please do share it with us. We will update it the codebase so that it is useful to others too. Email: [email protected]

Translate language for login or register interface

Go to config/app.php and change the value of “locale” to the specified language iso code.

Language ISO code Wiki

Adding new language

  1. Create a new directory for the language inside “/resources/lang/”. Name of directory should follow language_iso_code
  2. Copy the files from /resources/lang/en/ to the directory you created.
  3. Open the individual files, translate and save it.
  4. Go to public/js/lang. Create a new file with name “.js”, copy all content from en.js and add corresponding translations.
  5. Open config/constants.php and add the new language in the “langs” array.
  6. If you add any new languages, please do share the files with us. We will include it in our updates. We will acknowledge you for adding any new language. Email us at: [email protected] . Thank you in advance.

📩 Still stuck? Contact Support

Was this article helpful to you? Yes 6 No 3