Skip to content

Commit

Permalink
Fix language selection. Stupid mistake, thanks @KITT3000 and @vitalii…
Browse files Browse the repository at this point in the history
…2011  - Re: #62
  • Loading branch information
jtsage committed Feb 2, 2023
1 parent 1ff39c2 commit e2a5325
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ module.exports.translator = class translator {
deferCurrentLocale = () => { return this.#currentLocale }
get currentLocale() { return this.#currentLocale }
set currentLocale(value) {
if ( value in this.#translatorStrings ) {
if ( this.#translatorStrings.has(value) ) {
this.#currentLocale = value
}
}
Expand Down

0 comments on commit e2a5325

Please sign in to comment.