i18n/util
A collection of locale-aware text utility function.
Members
Section titled “Members ”isRtlText Function
Section titled “isRtlText   Function ”isRtlText( str ) → BooleanTakes content str and determines whether or not it is /docs/developer-guide/glossary/#rtl/docs/developer-guide/glossary/#rtl.
1 Param
- str String
A string to check the /docs/developer-guide/glossary/#rtl/docs/developer-guide/glossary/#rtl-ness of.
Returns
- Boolean
trueifstrshould be RTL;falseif not.
toCapitalized Function
Section titled “toCapitalized   Function ”toCapitalized( str ) → StringCapitalizes the first letter of a given string (locale aware).
1 Param
- str String
The string to capitalize.
Returns
- String
The capitalized string.
toLowerCase Function
Section titled “toLowerCase   Function ”toLowerCase( inString ) → StringLocale-safely convert a string to lower case.
1 Param
- inString String
String to convert to lower case
Returns
- String
Lower-cased string
toUpperCase Function
Section titled “toUpperCase   Function ”toUpperCase( inString ) → StringLocale-safely convert a string to upper case.
1 Param
- inString String
String to convert to upper case
Returns
- String
Upper-cased string
toWordCase Function
Section titled “toWordCase   Function ”toWordCase( str ) → StringCapitalizes every word in a string. Words are separated by spaces, not necessarily word-breaks (locale aware).
1 Param
- str String
The string to capitalize.
Returns
- String
The word-cased string.