Skip to content

Commit

Permalink
feat(i18n): translate time units and dialog buttons (#2530)
Browse files Browse the repository at this point in the history
resolve #2529
  • Loading branch information
3gf8jv4dv authored Feb 4, 2025
1 parent 84771e7 commit c7c7d81
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ export const ProfileDialog = ({
InputProps={{
inputProps: { min: 0 },
endAdornment: (
<InputAdornment position="end">mins</InputAdornment>
<InputAdornment position="end">{t('minutes')}</InputAdornment>
),
}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ export const SettingClashWeb = () => {
setEditIndex(null)
setEditString('')
}}
ok="Submit"
close="Close"
ok={t('Ok')}
close={t('Close')}
contentStyle={{ overflow: editString ? 'auto' : 'hidden' }}
divider
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ const ProxyGuardInterval = () => {
'aria-autocomplete': 'none',
},
InputProps: {
endAdornment: <InputAdornment position="end">s</InputAdornment>,
endAdornment: (
<InputAdornment position="end">{t('seconds')}</InputAdornment>
),
},
}}
/>
Expand Down
4 changes: 4 additions & 0 deletions frontend/nyanpasu/src/locales/en.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"seconds": "s",
"minutes": "min(s)",
"Ok": "OK",
"Close": "Close",
"label_dashboard": "Dashboard",
"label_proxies": "Proxies",
"label_profiles": "Profiles",
Expand Down
4 changes: 4 additions & 0 deletions frontend/nyanpasu/src/locales/ru.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"seconds": "секунды",
"minutes": "минуты",
"Ok": "OK",
"Close": "Закрыть",
"label_dashboard": "Панель управления",
"label_proxies": "Прокси",
"label_profiles": "Профили",
Expand Down
4 changes: 4 additions & 0 deletions frontend/nyanpasu/src/locales/zh-CN.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"seconds": "",
"minutes": "分钟",
"Ok": "确定",
"Close": "关闭",
"label_dashboard": "概 览",
"label_proxies": "代 理",
"label_profiles": "配 置",
Expand Down
4 changes: 4 additions & 0 deletions frontend/nyanpasu/src/locales/zh-TW.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"seconds": "",
"minutes": "分鐘",
"Ok": "確定",
"Close": "關閉",
"label_dashboard": "儀表盤",
"label_proxies": "代理組",
"label_profiles": "代理設定檔",
Expand Down

0 comments on commit c7c7d81

Please sign in to comment.