Translations

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

Summary

Methods

Properties

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

Methods

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

src/I18Next/Locale/Translations.php#45

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#97

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

src/I18Next/Locale/Translations.php#213

Parameters:
  • $format (string)