diff --git a/frontend/src/locale/helper.ts b/frontend/src/locale/helper.ts index e8ebe9efbc..ac2176d087 100644 --- a/frontend/src/locale/helper.ts +++ b/frontend/src/locale/helper.ts @@ -2,6 +2,13 @@ import type { LocaleType } from '#/global'; export function setHtmlPageLang(locale: LocaleType) { document.querySelector('html')?.setAttribute('lang', locale); + let fontFamily = ''; + if (locale === 'en-US') { + fontFamily = 'Helvetica Neue, Arial'; + } else { + fontFamily = 'PingFang SC, Microsoft YaHei'; + } + document.body.style.fontFamily = fontFamily; } export const loadLocalePool: LocaleType[] = [];