class LanguagePack implements ExtenderInterface, LifecycleInterface
Declaring a language pack's code, title and direction in composer.json as "extra.flarum-locale" is deprecated since 2.1 and will be removed in 3.0: use code(), title() and direction() instead.
Constants
| CORE_LOCALE_FILES |
|
Methods
Details
at
line 43
__construct(string $path = '/locale')
LanguagePack constructor.
at
line 51
LanguagePack
code(string $code)
The locale code, such as "en" or "pt-BR".
at
line 61
LanguagePack
title(string $title)
The language's name, written in that language.
at
line 73
LanguagePack
direction(string $direction)
The direction the language is written in.