{
  "id": 21017348,
  "title": "Japanese dates in JavaScript: Intl gives hieroglyphs, but not readings",
  "url": "https://urgent.news/2026/11/21/javascript-intl",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-21T08:05:31.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/art_jap_5704128d57/iaponskiie-daty-v-javascript-intl-daiot-iieroghlify-no-nie-daiot-chtieniie-5515"
  },
  "original_language": "ru",
  "account": "The article discusses the challenges of working with Japanese dates in JavaScript, specifically with the Intl API. While Intl can format dates in Japanese, it does not provide the correct readings for the dates. The article provides a solution by creating custom functions to generate the readings for days, months, and weekdays. For example, the 15th of October, 2026, would be written as \"10月15日(木)\" but read as \"じゅうがつじゅうごにち（もくようび）\". The solution involves creating arrays of exceptions and rules for reading dates, such as the readings for months (しがつ, しちがつ, くがつ) and special days (ついたち, ふつか, みっか).",
  "summary": "This article discusses the challenges of working with Japanese dates in JavaScript. While the Intl.DateTimeFormat object can easily display dates in Japanese, it falls short when it comes to providing the reading of those dates. The article explains that while the year, month, and day can be displayed correctly with appropriate formatting options, the reading of the day of the week and the month requires additional effort. For weekdays, the article provides an array of the corresponding Japanese readings, and for months, it offers a table to handle the four exceptions. However, the real challenge lies in correctly reading the numbers representing the days of the month, as the first ten follow a unique counting system with specific readings. Additionally, there are special cases for the 14th, 20th, and 24th of the month.",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}