Skip to main content
Version: v2

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

TypeDescription
stringInternationalization key

Result

TypeDescription
stringThe string corresponding to the internationalized key

Example

import { getText } from '@zos/i18n'

getText('name')