Constructor
new zTranslateService()
Perform the translation initialization and check the dates.
- Copyright:
- Ivan Antunes 2021
- Source:
Classes
Members
t :TFunction
Function used to Translate.
Type:
- TFunction
- Copyright:
- Ivan Antunes 2021
- Source:
Methods
(static) destroyInstance()
Function used to destroy instance of zTranslateService
- Copyright:
- Ivan Antunes 2021
- Source:
(static) getInstance()
Function used to get instance of zTranslateService
- Copyright:
- Ivan Antunes 2021
- Source:
Returns:
zTranslateService
getCurrentLanguage()
Function get current Language.
- Copyright:
- Ivan Antunes 2021
- Source:
Returns:
string
setCurrentLanguage(lang)
Function define current language.
Parameters:
Name | Type | Description |
---|---|---|
lang |
string | Language Translate. |
- Copyright:
- Ivan Antunes 2021
- Source:
t()
Function used to Translate.
- Copyright:
- Ivan Antunes 2021
- Source: