Skip to content

Commit 1fa45f6

Browse files
authored
feat: added ja (Japanese), yue (Cantonese), zh-hans (Simplified Chinese), and zh-hant (Traditional Chinese) (#5)
1 parent c10867c commit 1fa45f6

File tree

5 files changed

+336
-0
lines changed

5 files changed

+336
-0
lines changed

src/i18n/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,23 @@ import LanguageDetector from 'i18next-browser-languagedetector';
33
import Pseudo from 'i18next-pseudo';
44
import { initReactI18next } from 'react-i18next';
55
import { en } from './lang/en';
6+
import { ja } from './lang/ja';
67
import { nl } from './lang/nl';
78
import { ur } from './lang/ur';
9+
import { yue } from './lang/yue';
10+
import { zh_Hans } from './lang/zh-Hans';
11+
import { zh_Hant } from './lang/zh-Hant';
812

913
export const defaultNS = 'app';
1014

1115
export const languages = {
1216
en,
17+
ja,
1318
nl,
1419
ur,
20+
yue,
21+
"zh-Hans": zh_Hans,
22+
"zh-Hant": zh_Hant,
1523
};
1624

1725
i18n

src/i18n/lang/ja.ts

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
// Japanese
2+
export const ja = {
3+
auth: {
4+
login: {
5+
default: 'サインイン',
6+
pending: 'サインイン中...',
7+
},
8+
logout: 'サインアウト',
9+
password: 'パスワード',
10+
},
11+
app: {
12+
appName: '[placeholder name]',
13+
loading: 'ロード中...',
14+
blueskyHandle: 'blueskyハンドル 例:@alice.bsky.social',
15+
following: 'フォロー中',
16+
followers: 'フォロワー',
17+
posts: '投稿',
18+
replies: '返信',
19+
reposts: 'リポスト',
20+
likes: 'いいね',
21+
settings: '設定',
22+
},
23+
settings: {
24+
developerMode: {
25+
name: '開発者モード',
26+
description: '追加のデバッグツールを有効にします。',
27+
},
28+
streamerMode: {
29+
name: '配信モード',
30+
description: '機微情報を非表示にし、すべてのメディアコンテンツをぼかします。',
31+
},
32+
zenMode: {
33+
name: '禅モード',
34+
description: 'すべての数字を非表示にします。',
35+
},
36+
columns: {
37+
name: '列数',
38+
description: 'ホームビューに表示する列の数。',
39+
},
40+
responsiveUI: {
41+
name: 'レスポンシブなUI',
42+
description: 'UIは完全にレスポンシブにするか、固定幅にするか。',
43+
},
44+
language: {
45+
name: '言語',
46+
description: 'アプリの言語を変更します。',
47+
},
48+
font: {
49+
family: {
50+
name: 'フォントファミリ',
51+
description: 'アプリのフォントファミリを変更します。',
52+
},
53+
size: {
54+
name: 'フォントサイズ',
55+
description: 'アプリのフォントサイズを変更します。',
56+
},
57+
},
58+
cleanHandles: {
59+
name: 'きれいなハンドル',
60+
description: 'ハンドルから「.bsky.social」を削除します。',
61+
},
62+
},
63+
image: {
64+
noImage: '画像なし',
65+
},
66+
profile: {
67+
profile: 'プロフィール',
68+
notFound: 'プロフィールが見つかりません',
69+
},
70+
post: {
71+
notFound: '投稿が見つかりません',
72+
blockedAuthor: '投稿者をブロックしているため、この投稿は非表示になっています。',
73+
blockedByAuthor: '投稿者があなたをブロックしているため、この投稿は非表示になっています。',
74+
},
75+
error: {
76+
somethingWentWrong: '問題が発生しました',
77+
reloadComponent: 'コンポーネントをリロードする',
78+
},
79+
handleSearch: {
80+
noResultsFound: '結果が見つかりません',
81+
},
82+
} as const;

src/i18n/lang/yue.ts

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
// Cantonese
2+
export const yue = {
3+
auth: {
4+
login: {
5+
default: '登入',
6+
pending: '登入緊 ...',
7+
},
8+
logout: '登出',
9+
password: '密碼',
10+
},
11+
app: {
12+
appName: '[placeholder name]',
13+
loading: '載入緊 ...',
14+
blueskyHandle: 'bluesky 帳號頭銜 例如:@alice.bsky.social',
15+
following: '跟緊',
16+
followers: '擁躉',
17+
posts: '帖文',
18+
replies: '回覆',
19+
reposts: '轉發',
20+
likes: '讚好',
21+
settings: '設定',
22+
},
23+
settings: {
24+
developerMode: {
25+
name: '開發人員模式',
26+
description: '啟用額外嘅調試工具。',
27+
},
28+
streamerMode: {
29+
name: '流媒體模式',
30+
description: '隱藏敏感資料同埋模糊所有媒體內容。',
31+
},
32+
zenMode: {
33+
name: '禪模式',
34+
description: '隱藏所有數字。',
35+
},
36+
columns: {
37+
name: '欄數',
38+
description: '喺主視圖入面要顯示幾多欄。',
39+
},
40+
responsiveUI: {
41+
name: '回應式用戶介面',
42+
description: '個用戶介面係咪應該係完全回應式定係固定闊度。',
43+
},
44+
language: {
45+
name: '語言',
46+
description: '改應用程式嘅語言。',
47+
},
48+
font: {
49+
family: {
50+
name: '字體家族',
51+
description: '改應用程式嘅字體系列。',
52+
},
53+
size: {
54+
name: '字體大小',
55+
description: '改應用程式嘅字體大細。',
56+
},
57+
},
58+
cleanHandles: {
59+
name: '短帳號頭銜',
60+
description: '喺帳號頭銜入面移除「.bsky.social」。',
61+
},
62+
},
63+
image: {
64+
noImage: '冇圖像',
65+
},
66+
profile: {
67+
profile: '個人檔案',
68+
notFound: '搵唔到個人檔案',
69+
},
70+
post: {
71+
notFound: '搵唔到個帖文',
72+
blockedAuthor: '呢個帖文係隱藏嘅,因為你封鎖咗個作者。',
73+
blockedByAuthor: '呢個帖文係隱藏嘅,因為作者封鎖咗你。',
74+
},
75+
error: {
76+
somethingWentWrong: '出現問題喇',
77+
reloadComponent: '重新載入組件',
78+
},
79+
handleSearch: {
80+
noResultsFound: '搵唔到結果',
81+
},
82+
} as const;

src/i18n/lang/zh-Hans.ts

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
// Simplified Chinese
2+
export const zh_Hans = {
3+
auth: {
4+
login: {
5+
default: '登录',
6+
pending: '正在登录...',
7+
},
8+
logout: '登出',
9+
password: '密码',
10+
},
11+
app: {
12+
appName: '[placeholder name]',
13+
loading: '正在加载...',
14+
blueskyHandle: 'bluesky账户代码 例如:@alice.bsky.social',
15+
following: '正在关注',
16+
followers: '关注者',
17+
posts: '帖文',
18+
replies: '回复',
19+
reposts: '转发',
20+
likes: '喜欢',
21+
settings: '设置',
22+
},
23+
settings: {
24+
developerMode: {
25+
name: '开发者模式',
26+
description: '启用附加调试工具。',
27+
},
28+
streamerMode: {
29+
name: '流媒体模式',
30+
description: '隐藏敏感信息并模糊所有媒体内容。',
31+
},
32+
zenMode: {
33+
name: '禅模式',
34+
description: '隐藏所有数字。',
35+
},
36+
columns: {
37+
name: '列数',
38+
description: '在主页视图中显示多少列。',
39+
},
40+
responsiveUI: {
41+
name: '响应式用户界面',
42+
description: '选择将用户界面完全响应式或固定宽度。',
43+
},
44+
language: {
45+
name: '语言',
46+
description: '更改应用程序语言。',
47+
},
48+
font: {
49+
family: {
50+
name: '字体家族',
51+
description: '更改应用程序字体家族。',
52+
},
53+
size: {
54+
name: '字体大小',
55+
description: '更改应用程序字体大小。',
56+
},
57+
},
58+
cleanHandles: {
59+
name: '短账户代码',
60+
description: '将.bsky.social从账户代码中清除。',
61+
},
62+
},
63+
image: {
64+
noImage: '无图片',
65+
},
66+
profile: {
67+
profile: '个人资料',
68+
notFound: '未找到个人资料',
69+
},
70+
post: {
71+
notFound: '未找到帖文',
72+
blockedAuthor: '此帖文由于您将此作者屏蔽而被隐藏',
73+
blockedByAuthor: '此帖文由于此作者将您屏蔽而被隐藏',
74+
},
75+
error: {
76+
somethingWentWrong: '发生问题了',
77+
reloadComponent: '刷新组件',
78+
},
79+
handleSearch: {
80+
noResultsFound: '未找到结果',
81+
},
82+
} as const;

src/i18n/lang/zh-Hant.ts

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
// Traditional Chinese
2+
export const zh_Hant = {
3+
auth: {
4+
login: {
5+
default: '登入',
6+
pending: '登入中...',
7+
},
8+
logout: '註銷',
9+
password: '密碼',
10+
},
11+
app: {
12+
appName: '[placeholder name]',
13+
loading: '載入中...',
14+
blueskyHandle: 'bluesky帳號代碼 例如:@alice.bsky.social',
15+
following: '跟隨中',
16+
followers: '跟隨者',
17+
posts: '貼文',
18+
replies: '回覆',
19+
reposts: '轉發',
20+
likes: '喜歡',
21+
settings: '設定',
22+
},
23+
settings: {
24+
developerMode: {
25+
name: '開發者模式',
26+
description: '啟用額外的調試工具。',
27+
},
28+
streamerMode: {
29+
name: '串流模式',
30+
description: '隱藏敏感資訊並模糊所有媒體內容。',
31+
},
32+
zenMode: {
33+
name: '禪模式',
34+
description: '隱藏所有數位。',
35+
},
36+
columns: {
37+
name: '列數',
38+
description: '在主頁視圖中顯示多少列。',
39+
},
40+
responsiveUI: {
41+
name: '響應式使用者介面',
42+
description: '選擇將使用者介面完全響應式或固定寬度。',
43+
},
44+
language: {
45+
name: '語言',
46+
description: '更改應用程式語言。',
47+
},
48+
font: {
49+
family: {
50+
name: '字體家族',
51+
description: '更改應用程式字體家族。',
52+
},
53+
size: {
54+
name: '字體大小',
55+
description: '更改應用程式字體大小。',
56+
},
57+
},
58+
cleanHandles: {
59+
name: '短帳號代碼',
60+
description: '將.bsky.social從帳號代碼中清除。',
61+
},
62+
},
63+
image: {
64+
noImage: '無圖片',
65+
},
66+
profile: {
67+
profile: '個人檔案',
68+
notFound: '未找到個人檔案',
69+
},
70+
post: {
71+
notFound: '未找到貼文',
72+
blockedAuthor: '該貼文由於您將該作者封鎖而被隱藏。',
73+
blockedByAuthor: '該貼文由於該作者將您封鎖而被隱藏。',
74+
},
75+
error: {
76+
somethingWentWrong: '出現問題了',
77+
reloadComponent: '重新載入元件',
78+
},
79+
handleSearch: {
80+
noResultsFound: '未找到結果',
81+
},
82+
} as const;

0 commit comments

Comments
 (0)