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

Tracking issue: CLDR-14571 Add bcp47 data to CLDR JSON #562

Closed
sffc opened this issue Mar 19, 2021 · 5 comments
Closed

Tracking issue: CLDR-14571 Add bcp47 data to CLDR JSON #562

sffc opened this issue Mar 19, 2021 · 5 comments
Assignees
Labels
C-datetime Component: datetime, calendars, time zones C-locale Component: Locale identifiers, BCP47 R-fixed-elsewhere Resolution: issue was fixed outside the core repo S-large Size: A few weeks (larger feature, major refactoring) T-task Type: Tracking thread for a non-code task tracking This issue tracks a ticket in another project

Comments

@sffc
Copy link
Member

sffc commented Mar 19, 2021

This is the ICU4X tracking issue for https://unicode-org.atlassian.net/browse/CLDR-14571.

I would like to access the data under bcp47, especially bcp47/timezone.xml, through CLDR JSON.

Suggested structure:

  • Add a new directory under "cldr-core", parallel to "supplemental", called "bcp47"
  • Add a file inside called "timezone.json"
  • JSON structure such as:
{
  "keyword": {
    "tz": {
      "description": "Time zone key",
      "alias": "timezone",
      "type": {
        "adalv": {
          "description": "Andorra",
          "alias": "Europe/Andorra"
        },
        "aedxb": {
          "description": "Dubai, United Arab Emirates",
          "alias": "Asia/Dubai"
        },
...
@sffc sffc added tracking This issue tracks a ticket in another project C-datetime Component: datetime, calendars, time zones C-locale Component: Locale identifiers, BCP47 T-task Type: Tracking thread for a non-code task labels Mar 19, 2021
@sffc
Copy link
Member Author

sffc commented Mar 22, 2021

@sffc
Copy link
Member Author

sffc commented Mar 22, 2021

CC @nordzilla

@nordzilla
Copy link
Member

@sffc would iit be more helpful to have the key be the IANA-like name, and the alias be the BCP-47 name?

e.g.

{
  "keyword": {
    "tz": {
      "description": "Time zone key",
      "alias": "timezone",
      "type": {
        "Europe/Andorra": {
          "description": "Andorra",
          "alias": "adalv"
        },
        "Asia/Dubai"": {
          "description": "Dubai, United Arab Emirates",
          "alias": "aedxb"
        },
...

I imagine my use case will be oriented more toward looking up the BCP-47 name from the IANA name, rather than the reverse of that.

@sffc
Copy link
Member Author

sffc commented Mar 22, 2021

That would be more useful, yes, but I think we should try to track the XML as closely as possible, and XML has the BCP-47 first. We can always invert the map once we read it from CLDR-JSON.

@sffc
Copy link
Member Author

sffc commented Sep 16, 2021

@sffc sffc closed this as completed Sep 16, 2021
@sffc sffc added the R-fixed-elsewhere Resolution: issue was fixed outside the core repo label Sep 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-datetime Component: datetime, calendars, time zones C-locale Component: Locale identifiers, BCP47 R-fixed-elsewhere Resolution: issue was fixed outside the core repo S-large Size: A few weeks (larger feature, major refactoring) T-task Type: Tracking thread for a non-code task tracking This issue tracks a ticket in another project
Projects
None yet
Development

No branches or pull requests

3 participants
@sffc @nordzilla and others