Skip to content
Enact

Provides functions to map to translated strings.

Usage:

import $L, {toIString} from '@enact/i18n/$L';
$L('Close');        // => "Close" in the current locale
toIString('Close'); // => an ilib IString representing "Close" in the current locale
$L( str ) → String

Maps a string or key/value object to a translated string for the current locale.

1 Param
str String | Object

Source string

Returns
 String

The translated string

toIString( str ) → ilib.IString

Maps a string or key/value object to a translated string for the current locale.

1 Param
str String | Object

Source string

Returns
 ilib.IString

The translated string