You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Currently, Singleton Service below APIs, provides the pattern data for "dates, numbers, currencies, plurals, measurements, dateFields":
When combination of language and region is valid, "dates, numbers, currencies, measurements" following the valid combined locale; however,
"plurals,dateFields" always following language. GET /i18n/api/v2/formatting/patterns Get pattern from CLDR POST /i18n/api/v2/combination/translationsAndPattern Get translations and patterns
Therefore, it will be different localeID when to get the pattern for "dates,plurals" etc.
so Singleton should return "" for this scenario.
To Reproduce
Steps to reproduce the behavior:
Start the latest Singleton Service build
Find the APIs to get pattern by language and region
Check the Response body
Example data:
language: es
region: US
scope: dates,dateFields
in Response:
Describe the bug
Currently, Singleton Service below APIs, provides the pattern data for "dates, numbers, currencies, plurals, measurements, dateFields":
When combination of language and region is valid,
"dates, numbers, currencies, measurements" following the valid combined locale; however,
"plurals,dateFields" always following language.
GET /i18n/api/v2/formatting/patterns Get pattern from CLDR
POST /i18n/api/v2/combination/translationsAndPattern Get translations and patterns
Therefore, it will be different localeID when to get the pattern for "dates,plurals" etc.
so Singleton should return "" for this scenario.
To Reproduce
Steps to reproduce the behavior:
language: es
region: US
scope: dates,dateFields
in Response:
Expected behavior
"localeID" should be "", as "dates" is from "es-US", "dateFields" is from "es".
Screenshots
NA
Desktop (please complete the following information):
NA
Additional context
NA
The text was updated successfully, but these errors were encountered: