ITranslationManager
in
Tags
Table of Contents
Methods
- canDetectLanguage() : bool
- getLanguages() : array<string|int, LanguageTuple>
- getProviders() : array<string|int, ITranslationProvider>
- hasProviders() : bool
- translate() : string
Methods
canDetectLanguage()
public
canDetectLanguage() : bool
Tags
Return values
boolgetLanguages()
public
getLanguages() : array<string|int, LanguageTuple>
Tags
Return values
array<string|int, LanguageTuple>getProviders()
public
getProviders() : array<string|int, ITranslationProvider>
Tags
Return values
array<string|int, ITranslationProvider>hasProviders()
public
hasProviders() : bool
Tags
Return values
booltranslate()
public
translate(string $text, string|null &$fromLanguage, string $toLanguage) : string
Parameters
- $text : string
- $fromLanguage : string|null
- $toLanguage : string