Skip to content

Commit d02f026

Browse files
authored
refactor(i18n): add Korean locale to badge labels (JhaSourav07#565)
* refactor(i18n): add Korean locale to badge labels * style(readme): format after conflict resolution * fix(readme): remove merge artifacts
1 parent 22fcfc4 commit d02f026

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ URL Parameter > Theme Default > System Fallback
155155
| `hide_background` | `boolean` | No | `false` | Remove the background rect, letting the monolith float on the page |
156156
| `hide_stats` | `boolean` | No | `false` | Hides the bottom row displaying Current Streak, Annual Sync Total, and Peak Streak stats when set to `true` or `1`. |
157157
| `tz` | `string` | No | Omitted = UTC | IANA timezone (e.g. `Asia/Kolkata`, `America/New_York`) — aligns "today" with the user local midnight. Note: `?tz=UTC` is valid but cached separately from omitting `tz`. |
158-
| `lang` | `string` | No | `en` | Language code for labels (`en`, `es`, `hi`, `fr`, `pt`) |
158+
| `lang` | `string` | No | `en` | Language code for labels (`en`, `es`, `hi`, `fr`, `pt`, `ko`) |
159159
| `view` | `string` | No | `default` | Rendering mode: `default` (3D Monolith) or `monthly` (Compact monthly stats) |
160160
| `delta_format` | `string` | No | `percent` | Format for month-over-month delta in monthly view: `percent` (e.g. +12%), `absolute` (e.g. +15 commits), or `both` |
161161
| `width` | `number` | No | `300` | Custom width for the SVG canvas (currently only applies to `view=monthly`) |

lib/i18n/badgeLabels.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ export const labels: Record<string, BadgeLabels> = {
3535
COMMITS_THIS_MONTH: 'COMMITS ESTE MÊS',
3636
VS_LAST_MONTH: 'vs mês passado',
3737
},
38+
ko: {
39+
CURRENT_STREAK: '현재_연속',
40+
ANNUAL_SYNC_TOTAL: '연간_총합',
41+
PEAK_STREAK: '최고_연속',
42+
COMMITS_THIS_MONTH: '이번 달 커밋',
43+
VS_LAST_MONTH: '지난달 대비',
44+
},
3845
fr: {
3946
CURRENT_STREAK: 'SÉRIE_ACTUELLE',
4047
ANNUAL_SYNC_TOTAL: 'TOTAL_ANNUEL',

0 commit comments

Comments
 (0)