dayjs icon indicating copy to clipboard operation
dayjs copied to clipboard

fix(locale): remove Russian year suffix "г." from az formats

Open umudhasanli opened this issue 6 months ago • 0 comments

The az locale's LL / LLL / LLLL format strings ended with г. — the Cyrillic abbreviation for the Russian word "год" ("year"). This is a leftover from when src/locale/az.js was seeded from src/locale/ru.js: г. has no meaning in Azerbaijani (which is written in Latin script) and produced output like:

27 May 2026 г.
27 May 2026 г., 14:30
Çərşənbə axşamı, 27 May 2026 г., 14:30

instead of the expected:

27 May 2026
27 May 2026 14:30
Çərşənbə axşamı, 27 May 2026 14:30

Fix

Remove г. and its trailing comma from all three format strings. The resulting shape matches the convention used by other Latin-script Turkic locales — e.g. src/locale/tr.js uses 'D MMMM YYYY', 'D MMMM YYYY HH:mm', 'dddd, D MMMM YYYY HH:mm'.

-    LL: 'D MMMM YYYY г.',
-    LLL: 'D MMMM YYYY г., H:mm',
-    LLLL: 'dddd, D MMMM YYYY г., H:mm'
+    LL: 'D MMMM YYYY',
+    LLL: 'D MMMM YYYY H:mm',
+    LLLL: 'dddd, D MMMM YYYY H:mm'

The fix is intentionally minimal — only the spurious г. is removed. No other fields (months, weekdays, relativeTime, ordinal) are touched.

umudhasanli avatar May 26 '26 13:05 umudhasanli