DownloadI18Next\Locale\Translations
-
Class name: Translations
-
Namespace: I18Next\Locale
Properties
$namespace_priority
protected string[] $namespace_priority = []
$use_filename_as_namespace
protected bool $use_filename_as_namespace = false
$loader_format
private string $loader_format = json
$loader_format_ext
private string $loader_format_ext = json
Methods
load
mixed I18Next\Locale\Translations::load(string path, bool use_filename_as_namespace, string|null namespace_priority)
Arguments
-
path string
-
use_filename_as_namespace bool
-
namespace_priority string|null
loadSingle
array I18Next\Locale\Translations::loadSingle(string path)
Arguments
useFilenameAsNamespace
mixed I18Next\Locale\Translations::useFilenameAsNamespace(bool|null enabled)
Arguments
setNamespacePriority
mixed I18Next\Locale\Translations::setNamespacePriority(string|null namespace_priority)
Arguments
-
namespace_priority string|null
processKeyVariation
mixed I18Next\Locale\Translations::processKeyVariation(string processorClass, string key, value)
Arguments
-
processorClass string
-
key string
-
value mixed
afterReadProcessForKeyCounters
mixed I18Next\Locale\Translations::afterReadProcessForKeyCounters()
afterReadProcessForKeyDeepInline
mixed I18Next\Locale\Translations::afterReadProcessForKeyDeepInline()
afterReadAddNamespaceIfNeeded
mixed I18Next\Locale\Translations::afterReadAddNamespaceIfNeeded(array config, string namespace)
Arguments
-
config array
-
namespace string
useNamespaces
bool I18Next\Locale\Translations::useNamespaces()
getNamespaceRanked
string[] I18Next\Locale\Translations::getNamespaceRanked()
setLoaderFormat
mixed I18Next\Locale\Translations::setLoaderFormat(string format)
Arguments
|