ソースを参照

fix: close browser would reset to browser default language (#19665)

tags/1.4.0
Joel 5ヶ月前
コミット
85a44b7349
コミッターのメールアドレスに関連付けられたアカウントが存在しません
1個のファイルの変更1行の追加1行の削除
  1. 1
    1
      web/i18n/index.ts

+ 1
- 1
web/i18n/index.ts ファイルの表示

@@ -12,7 +12,7 @@ export const i18n = {
export type Locale = typeof i18n['locales'][number]

export const setLocaleOnClient = (locale: Locale, reloadPage = true) => {
Cookies.set(LOCALE_COOKIE_NAME, locale)
Cookies.set(LOCALE_COOKIE_NAME, locale, { expires: 365 })
changeLanguage(locale)
reloadPage && location.reload()
}

読み込み中…
キャンセル
保存