final | |
|---|---|
readonly | |
implements |
CacheSerializable |
One bundle key, resolved at build time into every language its bundle offers.
The registry build and ui5:nav read the
bundle once; the request only picks a language from the compiled map, with the chain
Core's {@see Ui5I18n::get()} follows — {@see Ui5I18n::fallbackChain()}: locale → language →
en → base bundle.
{@see self::require()} is the hard check: a key missing from the base bundle stops the build, the moment the vendor runs it, instead of reaching the screen as a raw key. The base bundle closes the chain, so a text that passed the check always resolves.
| Methods | ||
|---|---|---|
public
static
|
require(Ui5I18n $i18n, string $key, string $owner, string $purpose, string $file = 'i18n.properties'): self
|
# |
public
static
|
missing(string $key, string $owner, string $purpose, string $file = 'i18n.properties'): string
|
# |
public
static
|
find(Ui5I18n $i18n, string $key): ?self
|
# |
public
|
in(?string $locale): string
|
# |
public
static
|
pick<T>(array<string, T> $byLocale, ?string $locale): T
|
# |
public
|
toCache(): array
|
# |
public
static
|
fromCache(array $data): static
|
# |