Copied!

The \PHPFUI\Translation\ServiceInterface allows for an external solution (Key Value Store for example) instead of using PHP arrays to look up translations.

AbstractInterface
Methods
public abstract translate(string $text, string $locale) : string
 
  • param string $text that needs to be translated. No substitutions or plurization needs to be done.
  • param string $locale that of the translation that needs to be returned.
  • return string translated text
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration