Skip to content

Commit

Permalink
first draft
Browse files Browse the repository at this point in the history
  • Loading branch information
3gf8jv4dv committed Dec 20, 2024
1 parent 0dd4efa commit 754b124
Show file tree
Hide file tree
Showing 2 changed files with 520 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/lang/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import zh_cn from './zh_cn.json'
import zh_tw from './zh_tw.json'
import en_us from './en_us.json'

type Message = Record<keyof typeof zh_cn, string>
| Record<keyof typeof zh_tw, string>
| Record<keyof typeof en_us, string>


Expand All @@ -14,6 +16,14 @@ const langs = [
fallback: true,
message: zh_cn,
},
{
name: '繁體中文',
locale: 'zh_tw',
// alternate: 'zh-hant',
country: 'cn',
fallback: true,
message: zh_tw,
},
{
name: 'English',
locale: 'en_us',
Expand Down
Loading

0 comments on commit 754b124

Please sign in to comment.