Skip to content

Commit

Permalink
style: format
Browse files Browse the repository at this point in the history
  • Loading branch information
uonr committed Sep 13, 2024
1 parent d187379 commit eaff48f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/common/locale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const loadMessages = async (locale: Locale): Promise<IntlMessages> => {

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';
Expand Down

0 comments on commit eaff48f

Please sign in to comment.