Skip to content

Commit

Permalink
fix utils.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
cirry committed Oct 22, 2024
1 parent 613a74c commit 01a87f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/i18n/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import {cs} from './cs'
import {zhHant} from './zhHant'
import {config} from "../consts";
const ui = {
en, 'zh-cn': zhCn, 'zh-Hant': zhHant, cs

en, 'zh-cn': zhCn, 'zh-Hant': zhHant, cs
}
export function useTranslations(lang: keyof typeof ui) {
return function t(key: string) {
return ui[lang][key];
Expand Down

0 comments on commit 01a87f7

Please sign in to comment.