Skip to content

Commit 9b93d27

Browse files
committed
feat(i18n): add shared i18n package as single source of truth
- Create packages/i18n with source ARB files - Add build script to generate web JSON and mobile ARB files - Remove apps/web/public/locales (replaced by apps/web/messages) - Remove .github/workflows/ci.yml - Migrate biome config to v2.3.11
1 parent 46f9f26 commit 9b93d27

16 files changed

Lines changed: 6932 additions & 277 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 262 deletions
This file was deleted.

apps/mobile/lib/l10n/app_en.arb

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,31 @@
55
"description": "The app title"
66
},
77
"loading": "Loading...",
8+
"@loading": {
9+
"description": "Loading indicator text"
10+
},
811
"error": "An error occurred",
9-
"retry": "Retry"
12+
"@error": {
13+
"description": "Generic error message"
14+
},
15+
"retry": "Retry",
16+
"@retry": {
17+
"description": "Retry button text"
18+
},
19+
"save": "Save",
20+
"@save": {
21+
"description": "Save button text"
22+
},
23+
"cancel": "Cancel",
24+
"@cancel": {
25+
"description": "Cancel button text"
26+
},
27+
"confirm": "Confirm",
28+
"@confirm": {
29+
"description": "Confirm button text"
30+
},
31+
"delete": "Delete",
32+
"@delete": {
33+
"description": "Delete button text"
34+
}
1035
}

apps/mobile/lib/l10n/app_ja.arb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@
33
"appTitle": "フルスタックスターター",
44
"loading": "読み込み中...",
55
"error": "エラーが発生しました",
6-
"retry": "再試行"
6+
"retry": "再試行",
7+
"save": "保存",
8+
"cancel": "キャンセル",
9+
"confirm": "確認",
10+
"delete": "削除"
711
}

apps/mobile/lib/l10n/app_ko.arb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@
33
"appTitle": "풀스택 스타터",
44
"loading": "로딩 중...",
55
"error": "오류가 발생했습니다",
6-
"retry": "재시도"
6+
"retry": "재시도",
7+
"save": "저장",
8+
"cancel": "취소",
9+
"confirm": "확인",
10+
"delete": "삭제"
711
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"common": {
44
"loading": "Loading...",
55
"error": "An error occurred",
6+
"retry": "Retry",
67
"save": "Save",
78
"cancel": "Cancel",
89
"confirm": "Confirm",
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
2-
"title": "Fullstack Starter",
2+
"title": "フルスタックスターター",
33
"common": {
44
"loading": "読み込み中...",
55
"error": "エラーが発生しました",
6+
"retry": "再試行",
67
"save": "保存",
78
"cancel": "キャンセル",
89
"confirm": "確認",
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
2-
"title": "Fullstack Starter",
2+
"title": "풀스택 스타터",
33
"common": {
44
"loading": "로딩 중...",
55
"error": "오류가 발생했습니다",
6+
"retry": "재시도",
67
"save": "저장",
78
"cancel": "취소",
89
"confirm": "확인",

biome.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.0.0/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.3.11/schema.json",
33
"vcs": {
44
"enabled": true,
55
"clientKind": "git",
66
"useIgnoreFile": true
77
},
88
"files": {
99
"ignoreUnknown": true,
10-
"ignore": [
11-
"node_modules",
12-
".next",
13-
"dist",
14-
"build",
15-
"coverage",
16-
"*.gen.ts",
17-
"apps/web/src/lib/api/**"
10+
"includes": [
11+
"**",
12+
"!**/node_modules",
13+
"!**/.next",
14+
"!**/dist",
15+
"!**/build",
16+
"!**/coverage",
17+
"!**/*.gen.ts",
18+
"!**/apps/web/src/lib/api/**"
1819
]
1920
},
2021
"formatter": {

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"dev:web": "mise run dev:web",
1010
"dev:worker": "mise run dev:worker",
1111
"lint": "biome check .",
12-
"format": "biome check --write ."
12+
"format": "biome check --write .",
13+
"i18n:build": "pnpm --filter @workspace/i18n build"
1314
},
1415
"devDependencies": {
1516
"@biomejs/biome": "^2.3.11",

0 commit comments

Comments
 (0)