Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG][Java Service]localeID is empty when requesting language goes with region and combinational locale is valid on language/region pattern api. #2390

Open
lyiyu66 opened this issue Jun 6, 2023 · 0 comments
Assignees

Comments

@lyiyu66
Copy link

lyiyu66 commented Jun 6, 2023

Describe the bug
commit: 3ca3861
localeID is empty when requesting language goes with region and combinational locale is valid on language/region pattern api.
GET /i18n/api/v1/i18nPattern
GET /i18n/api/v2/formatting/patterns/locales/{locale}

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'GET ​/i18n​/api​/v2​/formatting​/patterns'
  2. Input "en-US" as language, "US" as region and "plurals" as pattern.
  3. See the response:
{
  "response": {
    "code": 200,
    "message": "OK",
    "serverTime": ""
  },
  "signature": "",
  "data": {
    "localeID": "",
    "language": "en-US",
    "region": "us",
    "categories": 
    ...
  }
}

Expected behavior
the combinational locale should be listed as localeID value: en-US

{
  "response": {
    "code": 200,
    "message": "OK",
    "serverTime": ""
  },
  "signature": "",
  "data": {
    "localeID": "en-US",
    "language": "en-US",
    "region": "us",
    "categories": 
    ...
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants