i18n


Class: \Flextype\Component\I18n\I18n

Visibility Function
public static add(string/array $translates, \string $locale=null) : void
Add translation keys I18n::add(['auth_login' => 'Login', 'auth_password' => 'Password'], 'ru');
public static find(\string $translate, \string $locale=null, array $values=array()) : string
Returns translation of a string. If no translation exists, the original string will be returned. No parameters are replaced. $translated_string = I18n::find('auth_login', 'ru');
Language: en, ru