formatjs icon indicating copy to clipboard operation
formatjs copied to clipboard

Wrong stand-alone long month form

Open anatolyeltsov opened this issue 4 months ago • 3 comments

Which package?

@formatjs/intl-datetimeformat

Describe the bug

With polyfill-force the stand-alone full month name in ru locale is wrong:

new Intl.DateTimeFormat('ru', { month: 'long' }).format();
// 10 октября

new Intl.DateTimeFormat('ru', { month: 'long' }).format();
// октября

To Reproduce

Codesandbox URL

https://codesandbox.io/p/sandbox/intl-datetimeformat-z4hghd?file=/src/index.js

Reproducible Steps/Repo

import "@formatjs/intl-datetimeformat/polyfill-force";
import "@formatjs/intl-datetimeformat/locale-data/ru";

const relativeMonth = new Intl.DateTimeFormat("ru", {
  day: "numeric",
  month: "long",
}).format();
const standAloneMonth = new Intl.DateTimeFormat("ru", {
  month: "long",
}).format();

console.log(relativeMonth);
console.log(standAloneMonth);

Expected behavior

Right long form for stand-alone month should be used: октябрь (see clrd)

Additional context

Everything works fine at least in Chrome & Firefox without polyfill.

anatolyeltsov avatar Oct 10 '25 13:10 anatolyeltsov

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Nov 10 '25 02:11 github-actions[bot]

Hopefully it won't be closed without an answer at all.

anatolyeltsov avatar Nov 10 '25 19:11 anatolyeltsov

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Dec 11 '25 02:12 github-actions[bot]