Translation Interfaces
(all in the Centum\Interfaces\Translation
namespace)
LocaleInterface
getCode(): non-empty-string
getTranslations(): array<non-empty-string, array<non-empty-string, non-empty-string>>
flattenKeys(): list<non-empty-string>
LocalesInterface
getAvailableCodes(): list<non-empty-string>
load(
non-empty-string $code
): Centum\Interfaces\Translation\LocaleInterface
TranslatorInterface
translate(
non-empty-string $domain,
non-empty-string $key,
array<non-empty-string, mixed> $values = []
): string