Skip to content

Commit

Permalink
fix(dedicated): fix reloading page on locale language change (#9727)
Browse files Browse the repository at this point in the history
ref: MANAGER-11240

Signed-off-by: David Arsène <[email protected]>
  • Loading branch information
darsene authored Jul 27, 2023
1 parent 07dc690 commit 24b6044
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/manager/apps/carbon-calculator/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ initShellClient('carbon-calculator').then((shellClient) => {
if (!isTopLevelApplication()) {
shellClient.ux.startProgress();
}
shellClient.i18n.onLocaleChange(() => {
window.top.location.reload();
});
shellClient.environment.getEnvironment().then((environment) => {
environment.setVersion(__VERSION__);
import(`./config-${environment.getRegion()}`)
Expand Down

0 comments on commit 24b6044

Please sign in to comment.