Translations

class I18Next\Locale\Translations
Source:src/I18Next/Locale/Translations.php#16
Used traits:atk4\core\ConfigTrait

Summary

Methods

Properties

protected static property I18Next\Locale\Translations::$namespace_priority
Source:src/I18Next/Locale/Translations.php#24
Type:string[]
protected static property I18Next\Locale\Translations::$use_filename_as_namespace
Source:src/I18Next/Locale/Translations.php#27
Type:bool

Methods

public I18Next\Locale\Translations::load($path, $use_filename_as_namespace, ...$namespace_priority)
Source:

src/I18Next/Locale/Translations.php#42

Parameters:
  • $path (string)
  • $use_filename_as_namespace (bool)
  • …$namespace_priority (string | null)
Throws:

\atk4\core\Exception

public I18Next\Locale\Translations::useFilenameAsNamespace($enabled)
Source:

src/I18Next/Locale/Translations.php#95

Parameters:
  • $enabled (bool | null)
public I18Next\Locale\Translations::useNamespaces()
Source:src/I18Next/Locale/Translations.php#190
Returns:bool
public I18Next\Locale\Translations::getNamespaceRanked()
Source:src/I18Next/Locale/Translations.php#198
Returns:string[]
public I18Next\Locale\Translations::setLoaderFormat($format)
Source:

src/I18Next/Locale/Translations.php#206

Parameters:
  • $format (string)