1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 12:37:45 +00:00

LibLocale+LibJS: Update to CLDR version 42.0.0

There were some notable changes to the CLDR JSON format and data in this
release.

The patterns for a date at a specific time, i.e. "{date} at {time}", now
appear under the "atTime" attribute of the "dateTimeFormats" object.

Locale specific changes that affected test-js:

All locales:

* In many patterns, the code points U+00A0 (NO-BREAK SPACE) and U+202F
  (NARROW NO-BREAK SPACE) are now used in place of an ASCII space. For
  example, before the "dayPeriod" fields AM and PM.

* Separators such as U+2013 (EN DASH) are now surrounded by U+2009 (THIN
  SPACE) in place of an ASCII space character.

Locale "en":

* Narrow localizations of time formats are even more narrow. For
  example, the abbreviation "wk." for "week" is now just "wk".

Locale "ar":

* The code point U+060C (ARABIC COMMA) is now used in place of an ASCII
  comma.

* The code point U+200F (RIGHT-TO-LEFT MARK) now appears at the
  beginning of many localizations.

* When the "latn" numbering system is used for currency formatting, the
  currency symbol more consistently is placed at the end of the pattern.

Locale "he":

* The "many" plural rules category has been removed.

Locales "zh" and "es-419":

* Several display-name localizations were changed.
This commit is contained in:
Timothy Flynn 2022-10-19 15:34:17 -04:00 committed by Linus Groh
parent b87398341b
commit b077fccd3d
14 changed files with 277 additions and 225 deletions

View file

@ -52,8 +52,8 @@ describe("correct behavior", () => {
{ locale: "en-US", en: "American English", es419: "inglés estadounidense", zhHant: "英文(美國)" },
{ locale: "en-GB", en: "British English", es419: "inglés británico", zhHant: "英文(英國)" },
{ locale: "sr", en: "Serbian", es419: "serbio", zhHant: "塞爾維亞文" },
{ locale: "sr-Cyrl", en: "Serbian (Cyrillic)", es419: "serbio (cirílico)", zhHant: "塞爾維亞文(斯拉夫文" },
{ locale: "sr-Cyrl-BA", en: "Serbian (Cyrillic, Bosnia & Herzegovina)", es419: "serbio (cirílico, Bosnia-Herzegovina)", zhHant: "塞爾維亞文(斯拉夫文,波士尼亞與赫塞哥維納)" },
{ locale: "sr-Cyrl", en: "Serbian (Cyrillic)", es419: "serbio (cirílico)", zhHant: "塞爾維亞文(西里爾文字" },
{ locale: "sr-Cyrl-BA", en: "Serbian (Cyrillic, Bosnia & Herzegovina)", es419: "serbio (cirílico, Bosnia-Herzegovina)", zhHant: "塞爾維亞文(西里爾文字,波士尼亞與赫塞哥維納)" },
];
const en = new Intl.DisplayNames("en", { type: "language", languageDisplay: "dialect" });
@ -80,8 +80,8 @@ describe("correct behavior", () => {
{ locale: "en-US", en: "English (United States)", es419: "inglés (Estados Unidos)", zhHant: "英文(美國)" },
{ locale: "en-GB", en: "English (United Kingdom)", es419: "inglés (Reino Unido)", zhHant: "英文(英國)" },
{ locale: "sr", en: "Serbian", es419: "serbio", zhHant: "塞爾維亞文" },
{ locale: "sr-Cyrl", en: "Serbian (Cyrillic)", es419: "serbio (cirílico)", zhHant: "塞爾維亞文(斯拉夫文" },
{ locale: "sr-Cyrl-BA", en: "Serbian (Cyrillic, Bosnia & Herzegovina)", es419: "serbio (cirílico, Bosnia-Herzegovina)", zhHant: "塞爾維亞文(斯拉夫文,波士尼亞與赫塞哥維納)" },
{ locale: "sr-Cyrl", en: "Serbian (Cyrillic)", es419: "serbio (cirílico)", zhHant: "塞爾維亞文(西里爾文字" },
{ locale: "sr-Cyrl-BA", en: "Serbian (Cyrillic, Bosnia & Herzegovina)", es419: "serbio (cirílico, Bosnia-Herzegovina)", zhHant: "塞爾維亞文(西里爾文字,波士尼亞與赫塞哥維納)" },
];
const en = new Intl.DisplayNames("en", { type: "language", languageDisplay: "standard" });
@ -189,10 +189,10 @@ describe("correct behavior", () => {
{ calendar: "hebrew", en: "Hebrew Calendar", es419: "calendario hebreo", zhHant: "希伯來曆" },
{ calendar: "indian", en: "Indian National Calendar", es419: "calendario nacional hindú", zhHant: "印度國曆" },
{ calendar: "islamic", en: "Islamic Calendar", es419: "calendario islámico", zhHant: "伊斯蘭曆" },
{ calendar: "islamic-civil", en: "Islamic Calendar (tabular, civil epoch)", es419: "calendario civil islámico", zhHant: "伊斯蘭民用曆" },
{ calendar: "islamic-civil", en: "Islamic Calendar (tabular, civil epoch)", es419: "calendario islámico tabular", zhHant: "伊斯蘭民用曆" },
{ calendar: "islamic-rgsa", en: "Islamic Calendar (Saudi Arabia, sighting)", es419: "calendario islámico (Arabia Saudita)", zhHant: "伊斯蘭新月曆" },
{ calendar: "islamic-tbla", en: "Islamic Calendar (tabular, astronomical epoch)", es419: "calendario islámico tabular", zhHant: "伊斯蘭天文曆" },
{ calendar: "islamic-umalqura", en: "Islamic Calendar (Umm al-Qura)", es419: "calendario islámico umalqura", zhHant: "烏姆庫拉曆" },
{ calendar: "islamic-umalqura", en: "Islamic Calendar (Umm al-Qura)", es419: "calendario islámico Umm al-Qura", zhHant: "烏姆庫拉曆" },
{ calendar: "iso8601", en: "ISO-8601 Calendar", es419: "calendario ISO-8601", zhHant: "ISO 8601 國際曆法" },
{ calendar: "japanese", en: "Japanese Calendar", es419: "calendario japonés", zhHant: "日本曆" },
{ calendar: "persian", en: "Persian Calendar", es419: "calendario persa", zhHant: "波斯曆" },
@ -220,7 +220,7 @@ describe("correct behavior", () => {
{ dateTimeField: "weekOfYear", en: "week", es419: "semana", zhHant: "週" },
{ dateTimeField: "weekday", en: "day of the week", es419: "día de la semana", zhHant: "週天" },
{ dateTimeField: "day", en: "day", es419: "día", zhHant: "日" },
{ dateTimeField: "dayPeriod", en: "AM/PM", es419: "a. m./p. m.", zhHant: "上午/下午" },
{ dateTimeField: "dayPeriod", en: "AM/PM", es419: "a.m./p.m.", zhHant: "上午/下午" },
{ dateTimeField: "hour", en: "hour", es419: "hora", zhHant: "小時" },
{ dateTimeField: "minute", en: "minute", es419: "minuto", zhHant: "分鐘" },
{ dateTimeField: "second", en: "second", es419: "segundo", zhHant: "秒" },
@ -270,16 +270,16 @@ describe("correct behavior", () => {
// prettier-ignore
const data = [
{ dateTimeField: "era", en: "era", es419: "era", zhHant: "年代" },
{ dateTimeField: "year", en: "yr.", es419: "a", zhHant: "年" },
{ dateTimeField: "quarter", en: "qtr.", es419: "trim.", zhHant: "季" },
{ dateTimeField: "month", en: "mo.", es419: "m", zhHant: "月" },
{ dateTimeField: "weekOfYear", en: "wk.", es419: "sem.", zhHant: "週" },
{ dateTimeField: "year", en: "yr", es419: "a", zhHant: "年" },
{ dateTimeField: "quarter", en: "qtr", es419: "trim.", zhHant: "季" },
{ dateTimeField: "month", en: "mo", es419: "m", zhHant: "月" },
{ dateTimeField: "weekOfYear", en: "wk", es419: "sem.", zhHant: "週" },
{ dateTimeField: "weekday", en: "day of wk.", es419: "día de sem.", zhHant: "週天" },
{ dateTimeField: "day", en: "day", es419: "d", zhHant: "日" },
{ dateTimeField: "dayPeriod", en: "AM/PM", es419: "a.m./p.m.", zhHant: "上午/下午" },
{ dateTimeField: "hour", en: "hr.", es419: "h", zhHant: "小時" },
{ dateTimeField: "minute", en: "min.", es419: "min", zhHant: "分鐘" },
{ dateTimeField: "second", en: "sec.", es419: "s", zhHant: "秒" },
{ dateTimeField: "hour", en: "hr", es419: "h", zhHant: "小時" },
{ dateTimeField: "minute", en: "min", es419: "min", zhHant: "分鐘" },
{ dateTimeField: "second", en: "sec", es419: "s", zhHant: "秒" },
{ dateTimeField: "timeZoneName", en: "zone", es419: "zona", zhHant: "時區" },
];