Translations::load()
Loads all translations from the JSON files in the given directory
Translations::load(string $root, array $inject = []): Translations
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $rootrequired | string |
no default value | |
| $inject | array<string, array> |
[]
|
Additional translation strings by locale |