Skip to content

Commit

Permalink
fix locale strings
Browse files Browse the repository at this point in the history
  • Loading branch information
zerebos committed Aug 16, 2018
1 parent 056080c commit dd0d40d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion release/ZLibrary.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/structs/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default function(config) {
if (!this._config.strings) return {};
const locale = DiscordModules.UserSettingsStore.locale.split("-")[0];
if (this._config.strings.hasOwnProperty(locale)) return this._config.strings[locale];
if (this._config.strings.hasOwnProperty("en")) return this._config.strings[locale];
if (this._config.strings.hasOwnProperty("en")) return this._config.strings["en"];
return this._config.strings;
}

Expand Down

0 comments on commit dd0d40d

Please sign in to comment.