PHP code example of fabiang / laminas-localize-helper
1. Go to this page and download the library: Download fabiang/laminas-localize-helper library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
fabiang / laminas-localize-helper example snippets
return [
'translator' => [
'locale' => 'en_US', // this locale will be passed
],
'validators' => [
'initializers' => [
\Fabiang\LocalizeHelper\LocaleInitializer::class,
]
],
'filters' => [
'initializers' => [
\Fabiang\LocalizeHelper\LocaleInitializer::class,
]
],
'view_helpers' => [
'initializers' => [
\Fabiang\LocalizeHelper\LocaleInitializer::class,
]
]
];