Move to smartling for translation services
This commit is contained in:
parent
620067342a
commit
5957c111cf
73 changed files with 1394 additions and 64465 deletions
|
@ -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]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue