dw.util
Class Locale

Represents a Locale supported by the system.
Properties
country
:
String
(Read Only)
The uppercase ISO 3166 2-letter country/region code for this Locale.
If no country has been specified for this Locale, this value is an empty string.
displayCountry
:
String
(Read Only)
The display name of this Locale's country, in this Locale's language,
not in the session locale's language.
If no country has been specified for this Locale, this value is an empty string.
displayLanguage
:
String
(Read Only)
The display name of this Locale's language, in this Locale's language,
not in the session locale's language.
If no country has been specified for this Locale, this value is an empty string.
displayName
:
String
(Read Only)
The display name of this Locale, in this Locale's language,
not in the session locale's language.
If no display name has been specified for this Locale, this value is an empty string.
ID
:
String
(Read Only)
The String representation of the localeID.
Combines the language and the country key, concatenated with "_". For example: "en_US". This attribute is the primary key of the class.
ISO3Country
:
String
(Read Only)
The uppercase ISO 3166 3-letter country/region code for this Locale.
If no country has been specified for this Locale, this value is an empty string.
ISO3Language
:
String
(Read Only)
The 3-letter ISO 639 language code for this Locale.
If no language has been specified for this Locale, this value is an empty string.
language
:
String
(Read Only)
The lowercase ISO 639 language code for this Locale.
If no language has been specified for this Locale, this value is an empty string.
Constructor Summary
This class does not have a constructor, so you cannot create it directly.
Method Summary
getCountry()
:
String
Returns the uppercase ISO 3166 2-letter country/region code for this Locale.
getDisplayCountry()
:
String
Returns the display name of this Locale's country, in this Locale's language, not in the session locale's language.
getDisplayLanguage()
:
String
Returns the display name of this Locale's language, in this Locale's language, not in the session locale's language.
getDisplayName()
:
String
Returns the display name of this Locale, in this Locale's language, not in the session locale's language.
getISO3Country()
:
String
Returns the uppercase ISO 3166 3-letter country/region code for this Locale.
getISO3Language()
:
String
Returns the 3-letter ISO 639 language code for this Locale.
getLanguage()
:
String
Returns the lowercase ISO 639 language code for this Locale.
Methods inherited from class
Object
assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values
Salesforce Commerce Cloud Courses
Salesforce B2C Commerce Developer - Certification Tests
Why risk failing the SFCC exam? Get 180 real questions, killer content, and everything you need to crush the Salesforce B2C Commerce Developer certification.
Becoming a Salesforce B2C Commerce Developer is your ticket to higher salaries, better job opportunities, and the credibility to stand out from the competition. But let's be honestβpassing the certification exam isn't easy. That's where we come in.
Becoming a Salesforce B2C Commerce Developer is your ticket to higher salaries, better job opportunities, and the credibility to stand out from the competition. But let's be honestβpassing the certification exam isn't easy. That's where we come in.
Salesforce Javascript Developer I - Certification Tests
Not just another prep courseβthis is your shortcut to passing. Master JavaScript for Salesforce and go from 'hoping to pass' to knowing you will. Ready to start?
This isn't just another prep courseβit's your shortcut to mastering the skills and confidence you need to pass. With multiple practice tests covering every section and a final exam simulation designed to mirror the real thing, you'll feel like you've already aced it before test day.
This isn't just another prep courseβit's your shortcut to mastering the skills and confidence you need to pass. With multiple practice tests covering every section and a final exam simulation designed to mirror the real thing, you'll feel like you've already aced it before test day.
Salesforce B2C Commerce Architect - Certification Tests
Think the Developer exam was hard? Welcome to the next level.
The Salesforce B2C Commerce Architect certification is a whole different gameβcomplex solutions, elevated difficulty, and skills that set you apart in the eCommerce industry. That's why we're including 11 downloadable PDF guides, packed with best practices and strategies to help you prepare for the exam and build confidence in every topic.
The Salesforce B2C Commerce Architect certification is a whole different gameβcomplex solutions, elevated difficulty, and skills that set you apart in the eCommerce industry. That's why we're including 11 downloadable PDF guides, packed with best practices and strategies to help you prepare for the exam and build confidence in every topic.
Method Detail
getCountry
getCountry()
:
String
Returns the uppercase ISO 3166 2-letter country/region code for this Locale.
If no country has been specified for this Locale, this value is an empty string.
Returns:
the uppercase ISO 3166 2-letter country/region code for this Locale. If no country has been specified for this Locale, this value is an empty string.
getDisplayCountry
getDisplayCountry()
:
String
Returns the display name of this Locale's country, in this Locale's language,
not in the session locale's language.
If no country has been specified for this Locale, this value is an empty string.
Returns:
the display name of this Locale's country, in this Locale's language. If no country has been specified for this Locale, this value is an empty string.
getDisplayLanguage
getDisplayLanguage()
:
String
Returns the display name of this Locale's language, in this Locale's language,
not in the session locale's language.
If no country has been specified for this Locale, this value is an empty string.
Returns:
the display name of this Locale's language, in this Locale's language. If no language has been specified for this Locale, this value is an empty string.
getDisplayName
getDisplayName()
:
String
Returns the display name of this Locale, in this Locale's language,
not in the session locale's language.
If no display name has been specified for this Locale, this value is an empty string.
Returns:
the display name of this Locale, in this Locale's language. If no display name has been specified for this Locale, this value is an empty string.
getID
getID()
:
String
Returns the String representation of the localeID.
Combines the language and the country key, concatenated with "_". For example: "en_US". This attribute is the primary key of the class.
Returns:
the String representation of the localeID.
getISO3Country
getISO3Country()
:
String
Returns the uppercase ISO 3166 3-letter country/region code for this Locale.
If no country has been specified for this Locale, this value is an empty string.
Returns:
the uppercase ISO 3166 3-letter country/region code for this Locale. If no country has been specified for this Locale, this value is an empty string.
getISO3Language
getISO3Language()
:
String
Returns the 3-letter ISO 639 language code for this Locale.
If no language has been specified for this Locale, this value is an empty string.
Returns:
the 3-letter ISO 639 language code for this Locale. If no language has been specified for this Locale, this value is an empty string.
getLanguage
getLanguage()
:
String
Returns the lowercase ISO 639 language code for this Locale.
If no language has been specified for this Locale, this value is an empty string.
Returns:
the lowercase ISO 639 language code for this Locale. If no language has been specified for this Locale, this value is an empty string.
getLocale
Returns a Locale instance for the given localeId, or
null
if no such Locale could be found.
Parameters:
localeId
-
the localeID of the desired Locale
Returns:
the Locale instance for the given localeId, or
null
if no such Locale could be found.
toString
toString()
:
String
Returns the String representation of the localeID.
Combines the language and the country key, concatenated with "_". For example: "en_US". This attribute is the primary key of the class.
Returns:
the String representation of the localeID.