vmware / vmware/singleton

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

Open
#2,390 0 comments 0 reactions 1 assignee View on GitHub

@huihuiw01 is already working on this.

Since Jun 6, 2023.

area/java-service kind/bug priority/medium
Dominant language
Java
Stars
72
Forks
69
Avg merge
23h 32m
Merged PRs (30d)
4

Description

Describe the bug
commit: 3ca386100dcad77b1fb36031cc621726a94278ee
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": 
    ...
  }
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.