interface Writer (View source)

Allows serialization of entity definitions collected through i18nTextCollector into a persistent format, usually on the filesystem.

Methods

public
write(array $messages, string $locale, string $path)

No description

Details

write(array $messages, string $locale, string $path)

No description

Parameters

array $messages

Map of entity names (incl. namespace) to default values. Values may be array format for pluralised values, or strings for normal localisations.

string $locale
string $path

The directory base on which the collector should create new lang folders and files. Usually the webroot set through Director::baseFolder(). Can be overwritten for testing or export purposes.