FileTranslationSourceCatalog
final class FileTranslationSourceCatalog implements TranslationSourceCatalogInterface (View source)
Reads and combines physical translation files while retaining their provenance
Methods
Configures application paths and the registry of provider resource contributions
Returns locales with at least one physical source file
Returns groups physically covered by the selected locale
Returns effective source values and all contributions without locale fallback
Returns effective source values for one group and exact locale
Details
__construct
__construct(ApplicationContext $context, TranslationResourceRegistry|null $resources = null)
Configures application paths and the registry of provider resource contributions
locales
array
locales()
Returns locales with at least one physical source file
groups
array
groups(string $locale)
Returns groups physically covered by the selected locale
entries
array
entries(string|null $locale = null)
Returns effective source values and all contributions without locale fallback
lines
array
lines(string $locale, string $group)
Returns effective source values for one group and exact locale