Function to translate texts.
addDictionary({ es: { hello: 'Hola' } });setLang('es');t('hello'); // 'Hola' Copy
addDictionary({ es: { hello: 'Hola' } });setLang('es');t('hello'); // 'Hola'
The text to translate.
Optional
The context of the text.
The translated text.
Function to translate texts.
Example