Skip to content

Commit

Permalink
chore(i18n): refine english translation and rename some i18n key
Browse files Browse the repository at this point in the history
  • Loading branch information
3gf8jv4dv committed Feb 3, 2025
1 parent 73daba4 commit afbf888
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion frontend/nyanpasu/src/components/proxies/delay-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const DelayButton = memo(function DelayButton({
const isSuccess = mounted && !loading

return (
<Tooltip title={t('Delay check')}>
<Tooltip title={t('Latency check')}>
<Button
className="!fixed right-8 bottom-8 z-10 size-16 !rounded-2xl backdrop-blur"
sx={{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const ScrollCurrentNode = ({ onClick }: { onClick?: () => void }) => {
const { palette } = useTheme()

return (
<Tooltip title={t('Location')}>
<Tooltip title={t('Locate')}>
<Button
size="small"
className="!size-8 !min-w-0"
Expand Down
2 changes: 1 addition & 1 deletion frontend/nyanpasu/src/components/proxies/sort-selector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const SortSelector = memo(function SortSelector() {

const tmaps: { [key: string]: string } = {
default: 'Sort by default',
delay: 'Sort by delay',
delay: 'Sort by latency',
name: 'Sort by name',
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const SettingNyanpasuMisc = () => {
/>

<SwitchItem
label={t('Enable Builtin Enhanced')}
label={t('Enable Built-in Enhanced')}
{...createBooleanProps('enable_builtin_enhanced')}
/>

Expand Down
10 changes: 5 additions & 5 deletions frontend/nyanpasu/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@
"Update All Profiles": "Update All Profiles",
"View Runtime Config": "View Runtime Config",
"Reactivate Profiles": "Reactivate Profiles",
"Location": "Location",
"Delay check": "Delay check",
"Locate": "Locate",
"Latency check": "Latency check",
"Sort by default": "Sort by default",
"Sort by delay": "Sort by delay",
"Sort by latency": "Sort by latency",
"Sort by name": "Sort by name",
"Delay check URL": "Delay check URL",
"Latency check URL": "Latency check URL",
"Proxy detail": "Proxy detail",
"Filter": "Filter",
"Filter conditions": "Filter conditions",
Expand Down Expand Up @@ -211,7 +211,7 @@
"App Log Level": "App Log Level",
"Auto Close Connections": "Auto Close Connections",
"Enable Clash Fields Filter": "Enable Clash Fields Filter",
"Enable Builtin Enhanced": "Enable Builtin Enhanced",
"Enable Built-in Enhanced": "Enable Built-in Enhanced",
"Proxy Layout Column": "Proxy Layout Column",
"Default Latency Test": "Default Latency Test",
"Error": "Error",
Expand Down
10 changes: 5 additions & 5 deletions frontend/nyanpasu/src/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@
"Update All Profiles": "Обновить все профили",
"View Runtime Config": "Посмотреть конфигурацию времени выполнения",
"Reactivate Profiles": "Реактивировать профили",
"Location": "Местоположение",
"Delay check": "Проверка задержки",
"Locate": "Найти",
"Latency check": "Проверка задержки",
"Sort by default": "Сортировать по умолчанию",
"Sort by delay": "Сортировать по задержке",
"Sort by latency": "Сортировать по задержке",
"Sort by name": "Сортировать по имени",
"Delay check URL": "URL проверки задержки",
"Latency check URL": "URL проверки задержки",
"Proxy detail": "Детали прокси",
"Filter": "Фильтр",
"Filter conditions": "Условия фильтрации",
Expand Down Expand Up @@ -211,7 +211,7 @@
"App Log Level": "Уровень журнала приложения",
"Auto Close Connections": "Автоматическое закрытие соединений",
"Enable Clash Fields Filter": "Включить фильтр полей Clash",
"Enable Builtin Enhanced": "Включить встроенное улучшение",
"Enable Built-in Enhanced": "Включить встроенное улучшение",
"Proxy Layout Column": "Столбец макета прокси",
"Default Latency Test": "Тест задержки по умолчанию",
"Error": "Ошибка",
Expand Down
10 changes: 5 additions & 5 deletions frontend/nyanpasu/src/locales/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@
"Update All Profiles": "更新所有配置",
"View Runtime Config": "查看运行配置",
"Reactivate Profiles": "重新激活配置",
"Location": "当前使用节点",
"Delay check": "延迟测试",
"Locate": "当前使用节点",
"Latency check": "延迟测试",
"Sort by default": "默认排序",
"Sort by delay": "按延迟排序",
"Sort by latency": "按延迟排序",
"Sort by name": "按名称排序",
"Delay check URL": "延迟测试链接",
"Latency check URL": "延迟测试链接",
"Proxy detail": "展示节点细节",
"Filter": "过滤节点",
"Filter conditions": "过滤条件",
Expand Down Expand Up @@ -211,7 +211,7 @@
"App Log Level": "应用程序日志等级",
"Auto Close Connections": "自动关闭连接",
"Enable Clash Fields Filter": "开启 Clash 字段过滤",
"Enable Builtin Enhanced": "开启内建增强功能",
"Enable Built-in Enhanced": "开启内建增强功能",
"Proxy Layout Column": "代理页布局列数",
"Default Latency Test": "默认测试链接",
"Error": "错误",
Expand Down
10 changes: 5 additions & 5 deletions frontend/nyanpasu/src/locales/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@
"Update All Profiles": "更新所有代理設定檔",
"View Runtime Config": "查看實際執行設定",
"Reactivate Profiles": "重新啟用設定檔",
"Location": "目前使用節點",
"Delay check": "延遲測試",
"Locate": "目前使用節點",
"Latency check": "延遲測試",
"Sort by default": "預設排序",
"Sort by delay": "按延遲排序",
"Sort by latency": "按延遲排序",
"Sort by name": "按名稱排序",
"Delay check URL": "延遲測試連結",
"Latency check URL": "延遲測試連結",
"Proxy detail": "展示節點詳情",
"Filter": "過濾節點",
"Filter conditions": "過濾條件",
Expand Down Expand Up @@ -211,7 +211,7 @@
"App Log Level": "App 日誌等級",
"Auto Close Connections": "自動結束連線",
"Enable Clash Fields Filter": "開啟 Clash 欄位過濾",
"Enable Builtin Enhanced": "開啟內建增強功能",
"Enable Built-in Enhanced": "開啟內建增強功能",
"Proxy Layout Column": "代理頁布局列數",
"Default Latency Test": "預設測試連結",
"Error": "錯誤",
Expand Down

0 comments on commit afbf888

Please sign in to comment.