From eaff48f38cbc42eae1321dd1d9847e01be9ccc99 Mon Sep 17 00:00:00 2001 From: uonr Date: Fri, 13 Sep 2024 17:36:46 +0900 Subject: [PATCH] style: format --- packages/common/locale.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/common/locale.ts b/packages/common/locale.ts index 3deebe97..7ef5fb43 100644 --- a/packages/common/locale.ts +++ b/packages/common/locale.ts @@ -19,7 +19,7 @@ export const loadMessages = async (locale: Locale): Promise => { export const narrowLocale = (locale: string): Locale | null => { locale = locale.toLowerCase(); - if (locale === 'zh-tw' || locale === "zh-hant") { + if (locale === 'zh-tw' || locale === 'zh-hant') { return 'zh-TW'; } else if (locale === 'zh' || locale.startsWith('zh-')) { return 'zh-CN';