When changing the language while testing you have to restart the PHP test server, otherwise nothing will change in the browser!
To make the language dependencies work with
gettext on Linux, it is important that the language you want to support is also
suppported by your Linux installation.
sudo apt-get install language-pack-nl-base
Check your supported languages:
Output should be something like:
nl_AW nl_AW.utf8 nl_BE.utf8 nl_NL.utf8
Now in your application's locale folder:
locale -- nl_NL.utf8 ----- LC_MESSAGES ------- messages.po ------- messages.mo
config/environment/development.php (and also production):
'i18n' => [ 'activate' => true, 'config' => [ 'language' => 'nl_NL.utf8', // language 'domain' => 'messages', // basename .mo file 'pathLocale' => 'locale' // local folder relative to root ] ],