-
Notifications
You must be signed in to change notification settings - Fork 0
API L10n L10nManager
Christophe SAUVEUR edited this page Sep 29, 2024
·
2 revisions
final class L10nManager implements Services\ILocalizationService
Helper class for managing localization
Since 1.0
public function __construct(Services\IConfigService $configService)
Constructor
Since 1.0
Name | Type | Description |
---|---|---|
$configService |
IConfigService |
Config service instance |
public function bindTextDomain(string $key, string $path, string $charset = 'UTF-8')
Binds a new text domain
Since 2.0
Name | Type | Description |
---|---|---|
$key |
string |
Text domain key |
$path |
string |
Text domain path |
$charset |
string |
Text domain charset (Defaults to UTF-8) |
public function getLanguage(): string
Gets the current language from the current locale
Since 2.0
string
public function getLocale(): string
Gets the current locale from environment
Since 2.0
string
Getting Started | Framework Reference | API Reference | MFX is released under the MIT license