It is possible to add translations to the software by following the steps below.

Language files

The language files can be found in /resources/lang/. For example, if you want to add Spanish (es), copy /resources/lang/en/ to /resources/lang/es/ and translate all files in the /resources/lang/es/ directory.

Then copy /resources/lang/en.json to /resources/lang/es.json and translate that file.

Add language to config

Open /app/config/system.php and add the language to the available_languages array:

    // Available languages
    'available_languages' => [
      'en' => 'English',
      'es' => 'EspaƱol',
      'nl' => 'Nederlands'
    ],

Optionally, you can override default localization settings for new users by adding these to the language_defaults array:

    // Override localization defaults per language
    'language_defaults' => [
      'en' => [
        'locale' => 'en-US',
        'timezone' => 'America/New_York',
        'date_format' => 'm/d/Y',
        'currency' => 'USD',
        'time_format' => 'g:i a',
        'decimals' => 2,
        'decimal_seperator' => '.',
        'thousands_seperator' => ','
      ],
      'es' => [
        'locale' => 'es-ES',
        'timezone' => 'Europe/Paris',
        'date_format' => 'd-m-y',
        'currency' => 'EUR',
        'time_format' => 'H:i',
        'decimals' => 2,
        'decimal_seperator' => ',',
        'thousands_seperator' => '.'
      ],
      'nl' => [
        'locale' => 'nl-NL',
        'timezone' => 'Europe/Berlin',
        'date_format' => 'd-m-y',
        'currency' => 'EUR',
        'time_format' => 'H:i',
        'decimals' => 2,
        'decimal_seperator' => ',',
        'thousands_seperator' => '.'
      ]
    ],

Clear cache

Clear the cache by logging into the system as an administrator, and click the "Run migrations" button that can be found at Settings > Update.

Add-ons

Add-ons have their own language file(s) which can be found in /Modules/[Add-on]/Resources/lang/en/*.*. Copy that directory to something like /Modules/[Add-on]/Resources/lang/es/ and translate the files in this directory.