Skip to content

Commit 0c4e452

Browse files
committed
fixing i18n messages with missing placeholder values
1 parent 7a4c4b3 commit 0c4e452

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

webui/src/js/utils/wko-installer.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,10 @@ function(WkoActionsBase, project, wktConsole, i18n, projectIo, dialogHelper, val
106106
}
107107
}
108108

109-
busyDialogMessage = i18n.t('wko-installer-create-sa-in-progress', {operatorNamespace: operatorNamespace});
110-
dialogHelper.updateBusyDialog(busyDialogMessage, 7 / totalSteps);
111109
const operatorServiceAccount = this.project.wko.k8sServiceAccount.value;
110+
busyDialogMessage = i18n.t('wko-installer-create-sa-in-progress',
111+
{ operatorServiceAccount: operatorServiceAccount, operatorNamespace: operatorNamespace });
112+
dialogHelper.updateBusyDialog(busyDialogMessage, 7 / totalSteps);
112113
if (!options.skipCreateOperatorServiceAccount) {
113114
const status = await this.createOperatorServiceAccount(kubectlExe, kubectlOptions, operatorNamespace,
114115
operatorServiceAccount, errTitle, errPrefix);

webui/src/js/utils/wko-updater.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,10 @@ function(WkoActionsBase, project, wktConsole, i18n, projectIo, dialogHelper, val
105105
}
106106
}
107107

108-
busyDialogMessage = i18n.t('wko-updater-create-sa-in-progress', {operatorNamespace: operatorNamespace});
109-
dialogHelper.updateBusyDialog(busyDialogMessage, 7 / totalSteps);
110108
const operatorServiceAccount = this.project.wko.k8sServiceAccount.value;
109+
busyDialogMessage = i18n.t('wko-updater-create-sa-in-progress',
110+
{ operatorServiceAccount: operatorServiceAccount, operatorNamespace: operatorNamespace});
111+
dialogHelper.updateBusyDialog(busyDialogMessage, 7 / totalSteps);
111112
if (!options.skipCreateOperatorServiceAccount) {
112113
const status = await this.createOperatorServiceAccount(kubectlExe, kubectlOptions, operatorNamespace,
113114
operatorServiceAccount, errTitle, errPrefix);

0 commit comments

Comments
 (0)