Move to smartling for translation services

This commit is contained in:
Scott Nonnenberg 2022-09-27 14:01:06 -07:00 committed by GitHub
parent 620067342a
commit 5957c111cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
73 changed files with 1394 additions and 64465 deletions

View file

@ -131,9 +131,9 @@ export function getFontNameByTextScript(
if (fontSniffer.hasCJK(text)) {
const locale = i18n?.getLocale();
if (locale === 'zh_TW') {
if (locale === 'zh-TW') {
fonts.push(FONT_MAP.zhtc[textStyleIndex]);
} else if (locale === 'zh_HK') {
} else if (locale === 'zh-HK') {
fonts.push(FONT_MAP.zhhk[textStyleIndex]);
} else {
fonts.push(FONT_MAP.zhsc[textStyleIndex]);