diff --git a/mobile/assets/i18n/en-US.json b/mobile/assets/i18n/en-US.json index fe9da72c93..959426cc27 100644 --- a/mobile/assets/i18n/en-US.json +++ b/mobile/assets/i18n/en-US.json @@ -15,9 +15,10 @@ "advanced_settings_tile_title": "Advanced", "headers_settings_tile_title": "Custom proxy headers", "headers_settings_tile_subtitle": "Define proxy headers the app should send with each network request", - "advanced_settings_troubleshooting_subtitle": "Enable additional features for troubleshooting", "advanced_settings_troubleshooting_title": "Troubleshooting", + "advanced_settings_proxy_headers_title": "Proxy Headers", + "advanced_settings_proxy_headers_subtitle": "Define proxy headers Immich should send with each network request", "album_info_card_backup_album_excluded": "EXCLUDED", "album_info_card_backup_album_included": "INCLUDED", "album_thumbnail_card_item": "1 item", @@ -528,5 +529,7 @@ "viewer_unstack": "Un-Stack", "header_settings_header_name_input": "Header name", "header_settings_header_value_input": "Header value", - "header_settings_page_title": "Proxy Headers" -} + "header_settings_page_title": "Proxy Headers", + "header_settings_add_header_tip": "Add Header", + "header_settings_field_validator_msg": "Value cannot be empty" +} \ No newline at end of file diff --git a/mobile/assets/i18n/zh-CN.json b/mobile/assets/i18n/zh-CN.json index cdddf657db..391662694e 100644 --- a/mobile/assets/i18n/zh-CN.json +++ b/mobile/assets/i18n/zh-CN.json @@ -7,12 +7,14 @@ "add_to_album_bottom_sheet_added": "添加到 {album}", "add_to_album_bottom_sheet_already_exists": "已在 {album} 中", "advanced_settings_log_level_title": "日志等级:{}", - "advanced_settings_prefer_remote_subtitle": "在某些设备上,从本地的项目加载缩略图的速度非常慢。\n启用此选项以加载远程项目。", + "advanced_settings_prefer_remote_subtitle": "在某些设备上,从本地加载缩略图的速度非常慢。\n启用此选项以加载远程缩略图。", "advanced_settings_prefer_remote_title": "优先远程项目", "advanced_settings_self_signed_ssl_subtitle": "跳过服务器终结点的 SSL 证书验证(该选项适用于使用自签名证书的服务器)。", "advanced_settings_self_signed_ssl_title": "允许自签名 SSL 证书", "advanced_settings_tile_subtitle": "高级用户设置", "advanced_settings_tile_title": "高级", + "headers_settings_tile_title": "自定义请求头", + "headers_settings_tile_subtitle": "定义此应用随每个网络请求应发送的额外请求头", "advanced_settings_troubleshooting_subtitle": "启用用于故障排除的额外功能", "advanced_settings_troubleshooting_title": "故障排除", "album_info_card_backup_album_excluded": "已排除", @@ -522,5 +524,10 @@ "version_announcement_overlay_title": "服务端有新版本啦 \uD83C\uDF89", "viewer_remove_from_stack": "从堆叠中移除", "viewer_stack_use_as_main_asset": "作为主项目使用", - "viewer_unstack": "取消堆叠" + "viewer_unstack": "取消堆叠", + "header_settings_header_name_input": "请求头名", + "header_settings_header_value_input": "请求头值", + "header_settings_page_title": "自定义请求头", + "header_settings_add_header_tip": "添加请求头", + "header_settings_field_validator_msg": "值不能为空" } \ No newline at end of file diff --git a/mobile/assets/i18n/zh-Hans.json b/mobile/assets/i18n/zh-Hans.json index 06bc3e2cd1..391662694e 100644 --- a/mobile/assets/i18n/zh-Hans.json +++ b/mobile/assets/i18n/zh-Hans.json @@ -7,12 +7,14 @@ "add_to_album_bottom_sheet_added": "添加到 {album}", "add_to_album_bottom_sheet_already_exists": "已在 {album} 中", "advanced_settings_log_level_title": "日志等级:{}", - "advanced_settings_prefer_remote_subtitle": "在某些设备上,从本地的项目加载缩略图的速度非常慢。\n启用此选项以加载远程。", + "advanced_settings_prefer_remote_subtitle": "在某些设备上,从本地加载缩略图的速度非常慢。\n启用此选项以加载远程缩略图。", "advanced_settings_prefer_remote_title": "优先远程项目", "advanced_settings_self_signed_ssl_subtitle": "跳过服务器终结点的 SSL 证书验证(该选项适用于使用自签名证书的服务器)。", "advanced_settings_self_signed_ssl_title": "允许自签名 SSL 证书", "advanced_settings_tile_subtitle": "高级用户设置", "advanced_settings_tile_title": "高级", + "headers_settings_tile_title": "自定义请求头", + "headers_settings_tile_subtitle": "定义此应用随每个网络请求应发送的额外请求头", "advanced_settings_troubleshooting_subtitle": "启用用于故障排除的额外功能", "advanced_settings_troubleshooting_title": "故障排除", "album_info_card_backup_album_excluded": "已排除", @@ -310,7 +312,7 @@ "notification_permission_list_tile_title": "通知权限", "partner_list_user_photos": "{user}的照片", "partner_list_view_all": "展示全部", - "partner_page_add_partner": "添加同伴失败", + "partner_page_add_partner": "添加同伴", "partner_page_empty_message": "您的照片尚未与任何同伴共享。", "partner_page_no_more_users": "无需添加更多用户", "partner_page_partner_add_failed": "添加同伴失败", @@ -522,5 +524,10 @@ "version_announcement_overlay_title": "服务端有新版本啦 \uD83C\uDF89", "viewer_remove_from_stack": "从堆叠中移除", "viewer_stack_use_as_main_asset": "作为主项目使用", - "viewer_unstack": "取消堆叠" + "viewer_unstack": "取消堆叠", + "header_settings_header_name_input": "请求头名", + "header_settings_header_value_input": "请求头值", + "header_settings_page_title": "自定义请求头", + "header_settings_add_header_tip": "添加请求头", + "header_settings_field_validator_msg": "值不能为空" } \ No newline at end of file diff --git a/mobile/lib/pages/common/headers_settings.page.dart b/mobile/lib/pages/common/headers_settings.page.dart index 1a6a10d903..4f3e232ffb 100644 --- a/mobile/lib/pages/common/headers_settings.page.dart +++ b/mobile/lib/pages/common/headers_settings.page.dart @@ -69,7 +69,7 @@ class HeaderSettingsPage extends HookConsumerWidget { headers.value = headers.value.toList(); }, icon: const Icon(Icons.add_outlined), - tooltip: 'Add Header', + tooltip: 'header_settings_add_header_tip'.tr(), ), ], ), @@ -118,7 +118,7 @@ class HeaderKeyValueSettings extends StatelessWidget { String? emptyFieldValidator(String? value) { if (value == null || value.isEmpty) { - return 'Value cannot be empty'; + return 'header_settings_field_validator_msg'.tr(); } return null;