Skip to content

Commit

Permalink
[locale] fix: importing locales using path.resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
vdmtrv committed Oct 25, 2019
1 parent 13a61b2 commit 61bae76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/locale/locales.js
Expand Up @@ -53,7 +53,8 @@ function loadLocale(name) {
try {
oldLocale = globalLocale._abbr;
var aliasedRequire = require;
aliasedRequire('./locale/' + name);
var path = aliasedRequire('path');
aliasedRequire(path.resolve(__dirname, './locale/' + name));
getSetGlobalLocale(oldLocale);
} catch (e) {}
}
Expand Down

0 comments on commit 61bae76

Please sign in to comment.