-
Notifications
You must be signed in to change notification settings - Fork 0
Config
dvlpr1996 edited this page May 26, 2024
·
3 revisions
$configs = [
'driver' => 'array|json',
'langDir' => __DIR__ . '/lang/',
'defaultLang' => 'en',
'fallBackLang' => 'fa'
]
$localization = new Localization($configs);
All settings that you can configure
- driver => define the localization driver which accepts two values array or json
- langDir => define the localization directory path which should be the name of the lang folder,
- defaultLang => determines the default locale that will be used,
- fallBackLang => determines the locale to use when the current one is not available, can be null or empty string