Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Японские даты в JavaScript: Intl даёт иероглифы, но не даёт чтение

Японские даты в JavaScript: Intl даёт иероглифы, но не даёт чтение Если вы делаете приложение для изучения японского, календарь с японской локалью или озвучку дат, быстро выясняется: вывести дату по-японски легко, а вот получить, как она читается , стандартными средствами нельзя. Разберёмся, что умеет Intl , и допишем недостающее. Что умеет Intl.DateTimeFormat const d = new Date ( 2026 , 9 , 15 )…

Original Russian Read in English

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.

Brief written by urgent.news from Dev.to's own syndicated text. Machine-written; may contain errors — check the original.

Read the original at dev.to →

Report a problem with this story

More in Tech

Build Better Engineers, Not Just Better Software

I once worked on a coding project where I was effectively the junior. I had picked up a fix, worked through it and opened a pull request. I was pumped about it.

  • Lead DevOps consultants guide junior engineers.
  • Psychological safety crucial for team growth.
  • Constructive feedback encourages independent problem-solving.

A trash cleanup that deleted records a day early, and how I tested it in 2 minutes

Twenty, the open-source CRM, keeps deleted records in the trash for 14 days before deleting them for good. At least, that's what it says.

  • CRM Twenty retains deleted records for 14 days before permanent deletion.
  • Bug caused record deleted at 23:59 UTC to be permanently deleted at 00:10 UTC.
  • ChronoStack allows testing of time-based features in two minutes.

Twitter/X API Rate Limits in 2026: The Complete Guide

The #1 Pain Point for Twitter API Developers If you've worked with the X (formerly Twitter) API for any length of time, you've hit a rate limit. It's practically a rite of passage.

  • Twitter/X API rate limits changed in February 2026 to a pay-per-use model.
  • New accounts receive a $20 credit and first auto-recharge match up to $50.
  • Responses include three rate limit headers: limit, remaining, and reset timestamps.

More from Saturday 21 November →