Skip to content

DateBox: Use localized day period names (T1327076)#33365

Merged
marker-dao merged 2 commits intoDevExpress:26_1from
marker-dao:26_1_T1327076_datebox_es_locale
Apr 22, 2026
Merged

DateBox: Use localized day period names (T1327076)#33365
marker-dao merged 2 commits intoDevExpress:26_1from
marker-dao:26_1_T1327076_datebox_es_locale

Conversation

@marker-dao
Copy link
Copy Markdown
Contributor

No description provided.

@marker-dao marker-dao self-assigned this Apr 21, 2026
@marker-dao marker-dao marked this pull request as ready for review April 21, 2026 10:49
@marker-dao marker-dao requested a review from a team as a code owner April 21, 2026 10:49
Copilot AI review requested due to automatic review settings April 21, 2026 10:49
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates DateBox mask AM/PM handling to use localized day period (AM/PM) names, and adds a regression test to ensure keyboard arrow toggling continues to work in locales where period names differ from "AM"/"PM".

Changes:

  • Updated DateBoxMask._toggleAmPm to determine the current AM/PM index using localized period names.
  • Added a QUnit test that switches locale to es-ES and verifies repeated up presses keep toggling between localized AM/PM.
  • Minor readability refactors (local variables / whitespace) in the mask implementation.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
packages/devextreme/js/__internal/ui/date_box/date_box.mask.ts Switches AM/PM toggle lookup from hardcoded default names to localized period names.
packages/devextreme/testing/tests/DevExpress.ui.widgets.editors/datebox.mask.tests.js Adds regression coverage for repeated AM/PM toggling under a locale with localized period strings.

Comment thread packages/devextreme/js/__internal/ui/date_box/date_box.mask.ts
@marker-dao marker-dao force-pushed the 26_1_T1327076_datebox_es_locale branch from e258664 to d289845 Compare April 22, 2026 12:42
@marker-dao marker-dao merged commit 24f34d1 into DevExpress:26_1 Apr 22, 2026
123 of 125 checks passed
@marker-dao marker-dao deleted the 26_1_T1327076_datebox_es_locale branch April 22, 2026 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants