Skip to content

Commit

Permalink
fix(ui5-upload-collection-item): make use of both main & fiori i18n b…
Browse files Browse the repository at this point in the history
…undles (#3061)
  • Loading branch information
fifoosid committed Mar 31, 2021
1 parent 9301783 commit cdaafec
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions packages/fiori/src/UploadCollectionItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ const metadata = {
* @constructor
* @author SAP SE
* @alias sap.ui.webcomponents.fiori.UploadCollectionItem
* @extends UI5Element
* @extends ListItem
* @tagname ui5-upload-collection-item
* @public
* @since 1.0.0-rc.7
Expand Down Expand Up @@ -266,7 +266,7 @@ class UploadCollectionItem extends ListItem {

constructor() {
super();
this.i18nBundle = getI18nBundle("@ui5/webcomponents-fiori");
this.i18nFioriBundle = getI18nBundle("@ui5/webcomponents-fiori");

this._editPressed = false; // indicates if the edit btn has been pressed
this.doNotCloseInput = false; // Indicates whether the input should be closed when using keybord for navigation
Expand Down Expand Up @@ -433,11 +433,11 @@ class UploadCollectionItem extends ListItem {
}

get _renameBtnText() {
return this.i18nBundle.getText(UPLOADCOLLECTIONITEM_RENAMEBUTTON_TEXT);
return this.i18nFioriBundle.getText(UPLOADCOLLECTIONITEM_RENAMEBUTTON_TEXT);
}

get _cancelRenameBtnText() {
return this.i18nBundle.getText(UPLOADCOLLECTIONITEM_CANCELBUTTON_TEXT);
return this.i18nFioriBundle.getText(UPLOADCOLLECTIONITEM_CANCELBUTTON_TEXT);
}

get _showProgressIndicator() {
Expand All @@ -446,14 +446,14 @@ class UploadCollectionItem extends ListItem {

get _progressText() {
if (this.uploadState === UploadState.Uploading) {
return this.i18nBundle.getText(UPLOADCOLLECTIONITEM_UPLOADING_STATE);
return this.i18nFioriBundle.getText(UPLOADCOLLECTIONITEM_UPLOADING_STATE);
}

if (this.uploadState === UploadState.Error) {
return this.i18nBundle.getText(UPLOADCOLLECTIONITEM_ERROR_STATE);
return this.i18nFioriBundle.getText(UPLOADCOLLECTIONITEM_ERROR_STATE);
}

return this.i18nBundle.getText(UPLOADCOLLECTIONITEM_READY_STATE);
return this.i18nFioriBundle.getText(UPLOADCOLLECTIONITEM_READY_STATE);
}

get _showRetry() {
Expand All @@ -465,11 +465,11 @@ class UploadCollectionItem extends ListItem {
}

get _retryButtonTooltip() {
return this.i18nBundle.getText(UPLOADCOLLECTIONITEM_RETRY_BUTTON_TEXT);
return this.i18nFioriBundle.getText(UPLOADCOLLECTIONITEM_RETRY_BUTTON_TEXT);
}

get _terminateButtonTooltip() {
return this.i18nBundle.getText(UPLOADCOLLECTIONITEM_TERMINATE_BUTTON_TEXT);
return this.i18nFioriBundle.getText(UPLOADCOLLECTIONITEM_TERMINATE_BUTTON_TEXT);
}

get valueStateName() {
Expand Down

0 comments on commit cdaafec

Please sign in to comment.