Skip to content

Commit

Permalink
fix: fix broken translations (#548)
Browse files Browse the repository at this point in the history
when a locale other than english is selected, the missing core-shim.js
import was causing the wrong locale to be used by the
core/ResourceBundle
now with adding the Core-shim.js import, all resource bundles
will have the correct locale at run time
  • Loading branch information
pskelin committed Jun 14, 2019
1 parent 32ec3b3 commit 37b2b07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/base/src/ResourceBundle.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import "./shims/jquery-shim.js";
import "./shims/Core-shim.js";
import ResourceBundle from "@ui5/webcomponents-core/dist/sap/base/i18n/ResourceBundle.js";
import formatMessage from "@ui5/webcomponents-core/dist/sap/base/strings/formatMessage.js";
import { getLanguage } from "./LocaleProvider.js";
Expand Down

0 comments on commit 37b2b07

Please sign in to comment.