Skip to content

Armenian (hy) admin shows "Loading..." for every date: importDateFNSLocale has no 'hy-AM' case #19481

Open

Description

@rafalyovson

Describe the Bug

With Armenian (hy) as the admin language, every date in the admin panel shows "Բեռնում..." ("Loading...") forever: list view date cells, date document titles and anything else that goes through formatDate.

The Armenian translation sets dateFNSKey: 'hy-AM' (languages/hy.ts#L818), but importDateFNSLocale has no case 'hy-AM' (importDateFNSLocale.ts). So the import resolves to undefined, i18n.dateFNS is never set, and formatDate falls back to ${i18n.t('general:loading')}... (formatDateTitle.ts#L27).

date-fns ships the locale as date-fns/locale/hy, so the fix is one more case:

    case 'hy-AM':
      result = (await import('date-fns/locale/hy')).hy

      break

We are running exactly this as a pnpm patch on 3.93.0, and Armenian dates now render (e.g. "նոյեմբեր 21֊րդ 2025, 10:13 PM").

Link to the code that reproduces this issue

https://github.com/payloadcms/payload/blob/23cbb98201bc591785a0e9818b0a320a4892a4b8/packages/translations/src/importDateFNSLocale.ts (the missing case; the bug is visible in the source, and any blank template reproduces it with the steps below)

Reproduction Steps

  1. pnpx create-payload-app@latest -t blank
  2. In payload.config.ts, add import { hy } from '@payloadcms/translations/languages/hy' and set i18n: { supportedLanguages: { en, hy } }
  3. Log in to the admin and switch the language to Armenian (Հայերեն)
  4. Open the Users list: the Created At and Updated At columns show "Բեռնում..." instead of dates

Which area(s) are affected?

area: ui

Environment Info

Payload: 3.93.0 (also present on main at 23cbb98)
@payloadcms/translations: 3.93.0
Next.js: 16.4.5
Node.js: 26

Activity

  1. PANJA-ABHISHEK commented on Nov 10, 2026

    @PANJA-ABHISHEK

    I'd like to work on this. I'll add the 'hy-AM' case and a test that checks
    every language's dateFNSKey resolves to a date-fns locale, so this can't
    happen again for other languages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions