Protected
constructorExposes User Data
languageUse this property to set the language. Intended for debugging.
Returns a localized string for the date and time of the passed in Date
object.
Example: "Jan 1, 2019 at 12:34 AM"
Returns a localized string for the date of the passed in Date
object.
Example: "Jan 1, 2019"
Returns a short, localized string for the date of the passed in Date
object.
Example: "1/1/19"
Returns a localized string for the day of the week of the passed in Date
object.
Example: "Tuesday"
Returns a localized, formatted string representation of the distance in meters passed in.
Example: "39.4 in" (from 1 passed in)
Returns a localized, formatted string representation of the number passed in.
Example: "1,234" (from 1234 passed in)
Returns a localized, formatted string representing the number of seconds passed in.
Example: "2:06" (from 126 passed in)
Returns a localized, formatted string representation of the celsius temperature passed in.
Example: "32F" (from 0 passed in)
Returns a localized, formatted string representation of the fahrenheit temperature passed in.
Example: "32F" (from 32 passed in)
Exposes User Data
Returns the language code of the language being used on the device.
Example: "en" (for English)
Returns a localized string for the month of the passed in Date
object.
Example: "January"
Returns a localized string for the time of the passed in Date
object.
Example: "12:34 AM"
Returns the name of this object's type.
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other
. Useful for checking if two references point to the same thing.
Exposes User Data
The method takes a localization key and returns the localized string according to device language. Useful for localizing strings before formatting them and assigning them to Text.
Helps convert data types to localized string representations. Accessible through
global.localizationSystem
.Note that formatted or localized strings may appear differently to users depending on their region. The example results given here are representative of a user in the United States, but may appear differently for users in other regions.
Example