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.
In v22, the button text is empty.
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
- Create an
IgxInputGroup with an input of type "file".
- Set the
resourceStrings property with only igx_input_file_placeholder.
- Do not set
igx_input_upload_button.
- Run the application.
- 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
Description
I found a localization issue in
IgxInputGroupafter upgrading Ignite UI for Angular from v21 to v22.In v21, when I set only some properties in
IInputResourceStrings, like below,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_placeholderand do not setigx_input_upload_button, the upload button text was shown as "BROWSE" in v21.In v22, the button text is empty.
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
IgxInputGroupwith an input of type "file".resourceStringsproperty with onlyigx_input_file_placeholder.igx_input_upload_button.Actual Result
The upload button text is empty when
igx_input_upload_buttonis not specified inresourceStrings.Expected Result
Unspecified resource string entries should continue to use their default values.
For example, when
igx_input_upload_buttonis not specified, the default text "BROWSE" should be shown.Reproduction URL
No response
Attachments