TranslatorInterface
interface TranslatorInterface (View source)
Interface for objects capable of string translation.
Methods
string|false
getStringTranslation(string $langcode, string $string, string $context)
Retrieves English string to given language.
reset()
Resets translation cache.
Details
string|false
getStringTranslation(string $langcode, string $string, string $context)
Retrieves English string to given language.
reset()
Resets translation cache.
Since most translation systems implement some form of caching, this provides a way to delete that cache.