Skip to content

Commit

Permalink
fix: resolve current language bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hemengke1997 committed Jul 17, 2024
1 parent cc2dcf8 commit 1378e41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ class I18nAlly {
static mount(options: I18nSetupOptions) {
this.options = options

this.currentLng = !this.options.language ? this.resolveCurrentLng() : this.options.fallbackLng
this.currentLng = this.options.language || this.resolveCurrentLng()

this.init().then(async () => {
try {
Expand Down

0 comments on commit 1378e41

Please sign in to comment.