getText
Start from API_LEVEL
2.0
. Please refer to API_LEVEL.
Get the corresponding string from the internationalization resource file (.po) based on the internationalization key.
Type
function getText(key: Key): Result
Parameters
Key
Type | Description |
---|---|
string | Internationalization key |
Result
Type | Description |
---|---|
string | The string corresponding to the internationalized key |
Example
import { getText } from '@zos/i18n'
getText('name')