Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#2,390 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

@huihuiw01 đang làm issue này rồi.

Từ ngày 6/6/2023.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

area/java-service kind/bug priority/medium

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": 
    ...
  }
}
Ngôn ngữ chính
Java
Star
72
Fork
69
Merge trung bình
12 giờ 26 phút
Pull request đã merge (30 ngày)
5

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của vmware/singleton

Tất cả issue của vmware/singleton

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.