Skip to content

Commit

Permalink
it's uh.. it's en-US, not en_US. whew. lmao.
Browse files Browse the repository at this point in the history
  • Loading branch information
nikbrandt committed Sep 25, 2018
1 parent b3c22d2 commit 57680c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions struct/i18n.js
Expand Up @@ -95,13 +95,13 @@ class i18n {
* @param {string} [_originalLocale] The original locale used, if having to move to en-US
* @returns {*}
*/
getString (string, locale, variables = {}, _originalLocale = 'en_US') {
getString (string, locale, variables = {}, _originalLocale = 'en-US') {
let file = this._locales.get(locale);
if (!file) {
let error = new Error('Invalid locale: ' + locale);
errorLog('i18n error', error.stack, 42069);
console.error(error);
locale = 'en_US';
locale = 'en-US';
file = this._locales.get(locale);
}

Expand Down

0 comments on commit 57680c4

Please sign in to comment.