LocalesLoader
in package
Allow to load all locales from a locales file.
Table of Contents
Properties
- $bundles : array<string|int, array<string|int, LocalesBundle>>
Methods
- getLocalesFrom() : array<string|int, mixed>
- It returns all translations stored in the file indicated by the given key.
Properties
$bundles
protected
static array<string|int, array<string|int, LocalesBundle>>
$bundles
= array()
Methods
getLocalesFrom()
It returns all translations stored in the file indicated by the given key.
public
static getLocalesFrom(string $key[, string $locale = null ]) : array<string|int, mixed>
Parameters
- $key : string
-
a locale key. Only module and file prefix filename is required
- $locale : string = null
Tags
Return values
array<string|int, mixed> —all translations