i18n/$L
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 Members
Section titled “Members ”$L Function
Section titled “$L   Function ”$L( str ) → StringMaps 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 Function
Section titled “toIString   Function ”toIString( str ) → ilib.IStringMaps 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