Locale

data class Locale(val languageCode: String, val region: String)

Locale is a data class representing the locale information for a device, which includes the language code and the region. This class is used to store and retrieve information about the device's locale settings, such as language and region.

Author

Swapnil Musale

Constructors

Link copied to clipboard
constructor(languageCode: String, region: String)

Properties

Link copied to clipboard

the language code of the locale (e.g., "en" for English, "fr" for French).

Link copied to clipboard

the region code of the locale (e.g., "US" for the United States, "IN" for India).