Deprecated locale Parameter in AuraLocalizationService JavaScript API Methods
The locale parameter is
deprecated for several methods in the AuraLocalizationService object. The validation for the locale parameter has also been tightened to allow locale values to match only the user’s
Language or Locale settings in Salesforce. If the locale parameter is set to another value, it defaults to
the user’s Language
setting.
The locale parameter has been deprecated for these AuraLocalizationService methods:
- formatDate
- formatDateTime
- formatDateTimeUTC
- formatDateUTC
- formatTime
- formatTimeUTC
- parseDateTime
- parseDateTimeUTC
For related locale changes in several date and time components, see New and Changed Lightning Components.