Skip to content

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

Description

@jsakamotoIGJP

Description

I found a localization issue in IgxInputGroup after upgrading Ignite UI for Angular from v21 to v22.

In v21, when I set only some properties in IInputResourceStrings, like below,

<igx-input-group type="line" [resourceStrings]="resourceStrings">
    <input igxInput type="file" />
</igx-input-group>
public resourceStrings: IInputResourceStrings = {
  igx_input_file_placeholder: '(localized text)',
}

the other properties still used their default values.
 
However, after upgrading to v22, unspecified properties no longer use their default values. Instead, they become empty strings.
 
For example, if I set only igx_input_file_placeholder and do not set igx_input_upload_button, the upload button text was shown as "BROWSE" in v21.

Image

In v22, the button text is empty.

Image

Framework

Angular

Angular Version

22.0.0

Ignite UI for Angular Version

22.0.0

Component / Area

Other

Browser

Other, Edge

Operating System

Windows

Command Not Working

Steps to Reproduce

  1. Create an IgxInputGroup with an input of type "file".
  2. Set the resourceStrings property with only igx_input_file_placeholder.
  3. Do not set igx_input_upload_button.
  4. Run the application.
  5. Compare the behavior between v21 and v22.

Actual Result

The upload button text is empty when igx_input_upload_button is not specified in resourceStrings.

Expected Result

Unspecified resource string entries should continue to use their default values.
 
For example, when igx_input_upload_button is not specified, the default text "BROWSE" should be shown.

Reproduction URL

No response

Attachments

Metadata

Metadata

Assignees

Labels

🐛 bugAny issue that describes a bug🔣 i18n✅ status: resolvedApplies to issues that have pending PRs resolving them, or PRs that have already merged.localization

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions