CAPH.CONFIG.I18N
"i18n" sets default language string array and direction used by "language".
Contents
Methods
getThisLanguage | ||
Description | ||
Get the thisLanguage value. | ||
Parameters | ■void | |
Return | ■Array - The parent node. | |
Emulator Support | Y | |
SDK Constraint | Support from version 5.1 | |
Example | ||
var thisLanguage = caph.config.i18n.getThisLanguage(); |
setThisLanguage | ||
Description | ||
Set the thisLanguage value. | ||
Parameters | ■languageCode (Optional) - String - language code. | |
Return | ■void | |
Emulator Support | Y | |
SDK Constraint | Support from version 5.1 | |
Example | ||
caph.config.i18n.setThisLanguage('ko'); |
getNls | ||
Description | ||
Get the nls value. | ||
Parameters | ■void | |
Return | ■Array - The parent node. | |
Emulator Support | Y | |
SDK Constraint | Support from version 5.1 | |
Example | ||
var arrNls = caph.config.i18n.getNls(); |
setNls | ||
Description | ||
Set ths nls value. | ||
Parameters | ■value - Array - language code. | |
Return | ■void | |
Emulator Support | Y | |
SDK Constraint | Support from version 5.1 | |
Example | ||
caph.config.i18n.setNls(['en', 'ko']); |
getDirRTL | ||
Description | ||
Get the dirRTL value. | ||
Parameters | ■void | |
Return | ■Array - The parent node. | |
Emulator Support | Y | |
SDK Constraint | Support from version 5.1 | |
Example | ||
var dirRTL = caph.config.i18n.getDirRTL(); |
setDirRTL | ||
Description | ||
Set the dirRTL value. | ||
Parameters | ■value - Array - language code. | |
Return | ■void | |
Emulator Support | Y | |
SDK Constraint | Support from version 5.1 | |
Example | ||
caph.config.i18n.setDirRTL(['en', 'ko']); |
containNls | ||
Description | ||
Check to see if value (argument) is included in nls that already set. | ||
Parameters | ■value - String - language code. | |
Return | ■Boolean | |
Emulator Support | Y | |
SDK Constraint | Support from version 5.1 | |
Example | ||
isContainNls = caph.config.i18n.containNls('en'); |
containDirRTL | ||
Description | ||
Check to see if value (argument) is included in dirRTL that already set. | ||
Parameters | ■value - String - language code. | |
Return | ■Boolean | |
Emulator Support | Y | |
SDK Constraint | Support from version 5.1 | |
Example | ||
isContainDirRTL = caph.config.i18n.containDirRTL('en'); |
getNlsCode | ||
Description | ||
Get the nlsCode value. (By nls value, thisLanguage value) | ||
Parameters | ■value (Optional) - String - language code. | |
Return | ■String | |
Emulator Support | Y | |
SDK Constraint | Support from version 5.1 | |
Example | ||
var nlsCode = caph.config.i18n.getNlsCode(); |
isDirRTL | ||
Description | ||
isDirRTL is check that dirRTL is enable. (By dirRTL value, thisLanguage value) | ||
Parameters | ■value (Optional) - String - language code. | |
Return | ■Boolean | |
Emulator Support | Y | |
SDK Constraint | Support from version 5.1 | |
Example | ||
var isDirRTL = caph.config.i18n.isDirRTL(); |
isUseNls | ||
Description | ||
isUseNls is check that nls is enable. | ||
Parameters | ■void | |
Return | ■Boolean | |
Emulator Support | Y | |
SDK Constraint | Support from version 5.1 | |
Example | ||
var isUseNls = caph.config.i18n.isUseNls(); |
isUseDirRTL | ||
Description | ||
isUseDirRTL is check that dirRTL is enable. (By dirRTL value) | ||
Parameters | ■void | |
Return | ■Boolean | |
Emulator Support | Y | |
SDK Constraint | Support from version 5.1 | |
Example | ||
var isUseDirRTL = caph.config.i18n.isUseDirRTL(); |