Locale

class I18Next\Locale
Source:src/I18Next/Locale.php#14

Properties

Methods

public I18Next\Locale::__construct($code)
Locale constructor.
Source:

src/I18Next/Locale.php#33

Parameters:
  • $code (string)
public I18Next\Locale::load($path, $use_filename_as_namespace, ...$namespace_priority)
Source:

src/I18Next/Locale.php#47

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

\atk4\core\Exception

public I18Next\Locale::process($key, $parameters=null, $context=null)
Source:

src/I18Next/Locale.php#59

Parameters:
  • $key (string)
  • $parameters (array | null)
  • $context (string | null)
Returns:

string | null

public I18Next\Locale::setLoaderFormat($format)
Source:

src/I18Next/Locale.php#67

Parameters:
  • $format (string)