Skip to content

fix(i18n): Fix setting partial resources not filling the rest per component. - #17541

Open
skrustev wants to merge 5 commits into
masterfrom
skrastev/fix-17540-master
Open

fix(i18n): Fix setting partial resources not filling the rest per component.#17541
skrustev wants to merge 5 commits into
masterfrom
skrastev/fix-17540-master

Conversation

@skrustev

Copy link
Copy Markdown
Member

Closes #17540

Description

Fix setting partial custom resources per component returning partial resources as well when getting them using the resourceString property instead of getting merged with the default ones.

Type of Change (check all that apply):

  • Bug fix
  • New functionality
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactoring (no functional changes)
  • Documentation
  • Demos
  • CI/CD
  • Tests
  • Changelog
  • Skills/Agents

Component(s) / Area(s) Affected:

  • Action Strip
  • Banner
  • Carousel
  • Chip
  • Combo
  • Date Range Picker
  • Grid
  • Pivot Date Dimension
  • Input Group
  • List
  • Paginator
  • Query Builder
  • Tree

How Has This Been Tested?

  • Unit tests
  • Manual testing
  • Automated e2e tests

Checklist:

  • All relevant tags have been applied to this PR
  • This PR includes unit tests covering all the new code (test guidelines)
  • This PR includes API docs for newly added methods/properties (api docs guidelines)
  • This PR includes feature/README.MD updates for the feature docs
  • This PR includes general feature table updates in the root README.MD
  • This PR includes CHANGELOG.MD updates for newly added functionality
  • This PR contains breaking changes
  • This PR includes ng update migrations for the breaking changes (migrations guidelines)
  • This PR includes behavioral changes and the feature specification has been updated with them
  • Accessibility (ARIA, keyboard navigation, focus management) has been verified

@skrustev
skrustev requested a review from ChronosSF August 27, 2026 07:10
Copilot AI lite review requested due to automatic review settings August 27, 2026 07:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 fixes a regression in per-component i18n customization where providing partial resourceStrings caused unspecified strings to lose their default values (and/or not reflect later global i18n updates). The change standardizes the pattern across multiple components to keep a merged “defaults + overrides” resource object.

Changes:

  • Update multiple components to return merged resource strings (defaults + per-component overrides) instead of returning only the override object.
  • Ensure components recompute merged resources when global i18n changes (or when locale-based resources are refreshed).
  • Add unit tests across affected components to validate partial overrides and global i18n updates.

Reviewed changes

Copilot reviewed 29 out of 29 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
projects/igniteui-angular/tree/src/tree/tree.spec.ts Adds tests validating merged tree node resource strings and reaction to global i18n changes.
projects/igniteui-angular/tree/src/tree/tree-node/tree-node.component.ts Updates tree node resourceStrings handling to return merged defaults + overrides.
projects/igniteui-angular/time-picker/src/time-picker/time-picker.component.ts Updates time picker resourceStrings handling to return merged defaults + overrides and refresh on resource updates.
projects/igniteui-angular/query-builder/src/query-builder/query-builder.component.ts Updates query builder resourceStrings handling to return merged defaults + overrides.
projects/igniteui-angular/query-builder/src/query-builder/query-builder.component.spec.ts Adds tests validating merged query builder resource strings and reaction to global i18n changes.
projects/igniteui-angular/query-builder/src/query-builder/query-builder-tree.component.ts Refactors resource refresh logic and updates query builder tree resourceStrings merging behavior.
projects/igniteui-angular/query-builder/src/query-builder/query-builder-header.component.ts Updates query builder header resourceStrings handling to return merged defaults + overrides.
projects/igniteui-angular/paginator/src/paginator/paginator.component.ts Updates paginator resourceStrings handling to return merged defaults + overrides and refresh on resource changes.
projects/igniteui-angular/paginator/src/paginator/paginator.component.spec.ts Adds paginator test validating non-overridden strings update on global i18n change.
projects/igniteui-angular/list/src/list/list.component.ts Updates list resourceStrings handling to return merged defaults + overrides and refresh on resource changes.
projects/igniteui-angular/list/src/list/list.component.spec.ts Adds list tests validating partial overrides and global i18n update behavior.
projects/igniteui-angular/input-group/src/input-group/input-group.component.ts Updates input group resourceStrings handling to return merged defaults + overrides and refresh on resource changes.
projects/igniteui-angular/input-group/src/input-group/input-group.component.spec.ts Adds input group tests validating partial overrides and global i18n update behavior.
projects/igniteui-angular/grids/grid/src/grid.component.spec.ts Adds grid tests validating partial overrides and global i18n update behavior.
projects/igniteui-angular/grids/grid/src/grid-base.directive.ts Updates grid base directive resourceStrings handling to return merged defaults + overrides; adds resource refresh helper.
projects/igniteui-angular/grids/core/src/pivot-grid-dimensions.ts Updates pivot date dimension resourceStrings handling to return merged defaults + overrides.
projects/igniteui-angular/date-picker/src/date-range-picker/date-range-picker.component.ts Updates date range picker resourceStrings handling to return merged defaults + overrides and refresh on resource updates.
projects/igniteui-angular/date-picker/src/date-range-picker/date-range-picker.component.spec.ts Adds date range picker tests validating partial overrides and global i18n update behavior.
projects/igniteui-angular/combo/src/combo/combo.component.spec.ts Adds combo tests validating partial overrides and global i18n update behavior.
projects/igniteui-angular/combo/src/combo/combo.common.ts Updates combo base directive resourceStrings handling to return merged defaults + overrides and refresh on resource changes.
projects/igniteui-angular/chips/src/chips/chip.spec.ts Adds chip tests validating partial overrides and global i18n update behavior.
projects/igniteui-angular/chips/src/chips/chip.component.ts Updates chip resourceStrings handling to return merged defaults + overrides and refresh on resource changes.
projects/igniteui-angular/carousel/src/carousel/carousel.component.ts Updates carousel resourceStrings handling to return merged defaults + overrides and refresh on resource changes.
projects/igniteui-angular/carousel/src/carousel/carousel.component.spec.ts Adds carousel tests validating partial overrides and global i18n update behavior.
projects/igniteui-angular/calendar/src/calendar/calendar-base.ts Updates calendar resourceStrings handling to return merged defaults + overrides; refactors resource refresh helper.
projects/igniteui-angular/banner/src/banner/banner.component.ts Updates banner resourceStrings handling to return merged defaults + overrides and refresh on resource changes.
projects/igniteui-angular/banner/src/banner/banner.component.spec.ts Adds banner tests validating behavior with/without custom strings under global i18n changes.
projects/igniteui-angular/action-strip/src/action-strip/action-strip.component.ts Updates action strip resourceStrings handling to return merged defaults + overrides and refresh on resource changes.
projects/igniteui-angular/action-strip/src/action-strip/action-strip.component.spec.ts Adds action strip tests validating preservation of custom strings under global i18n changes.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment thread projects/igniteui-angular/grids/grid/src/grid-base.directive.ts
Comment thread projects/igniteui-angular/grids/core/src/pivot-grid-dimensions.ts
@skrustev
skrustev force-pushed the skrastev/fix-17540-master branch from 129ef9b to 9b975c1 Compare August 27, 2026 07:53
@skrustev skrustev added the squash-merge Merge PR with "Squash and Merge" option label Aug 27, 2026
@mddragnev mddragnev added 💥 status: in-test PRs currently being tested ✅ status: verified Applies to PRs that have passed manual verification and removed ❌ status: awaiting-test PRs awaiting manual verification 💥 status: in-test PRs currently being tested labels Aug 28, 2026
@mddragnev mddragnev self-assigned this Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

squash-merge Merge PR with "Squash and Merge" option 🔣 i18n version: 22.2.x ✅ status: verified Applies to PRs that have passed manual verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IgxInputGroup resourceStrings does not keep default values for unspecified entries in v22

4 participants