i18n.dart 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. import 'package:get/get.dart';
  2. import 'package:flutter/cupertino.dart';
  3. // 大部分翻译来自:
  4. // https://github.com/Dreamacro/clash-dashboard/blob/master/src/i18n/en_US.ts
  5. class I18n extends Translations {
  6. static const List<Locale> locales = [
  7. Locale('zh', 'CN'),
  8. Locale('en', 'US'),
  9. ];
  10. static const List<String> localeSwitchs = [
  11. "中文",
  12. "English",
  13. ];
  14. @override
  15. Map<String, Map<String, String>> get keys => {
  16. 'en_US': {
  17. "clash_core_version": " Core Version",
  18. // tray
  19. "tray_restart_clash_core": "Restart Core",
  20. "tray_show": "Show",
  21. "tray_copy_command_line_proxy": "Copy command line proxy",
  22. "tray_about": "About",
  23. "tray_exit": "Exit",
  24. //node
  25. "node_tit" : "Mouse wheel slide down select node",
  26. "node_auto" : "Automatic recommend",
  27. // modal
  28. "model_ok": "Ok",
  29. "model_cancel": "Cancel",
  30. "model_delete": "Delete",
  31. // sidebar
  32. "sidebar_proxies": "Proxies",
  33. "sidebar_profiles": "Profiles",
  34. "sidebar_logs": "Logs",
  35. "sidebar_rules": "Rules",
  36. "sidebar_settings": "Setting",
  37. "sidebar_connections": "Connections",
  38. "sidebar_version": "Version",
  39. // setting
  40. "setting_title": "Settings",
  41. "setting_start_at_login": "Start at login",
  42. "setting_language": "Language",
  43. "setting_set_as_system_proxy": "Set as system proxy",
  44. "setting_allow_connect_from_lan": "Allow connect from Lan",
  45. "setting_proxy_mode": "Mode",
  46. "setting_socks5_proxy_port": "Socks5 proxy port",
  47. "setting_http_proxy_port": "HTTP proxy port",
  48. "setting_mixed_proxy_port": "Mixed proxy port",
  49. "setting_external_controller": "External controller",
  50. "setting_service_install": "install Service",
  51. "setting_service_uninstall": "uninstall Service",
  52. "setting_mode_global": "Global",
  53. "setting_mode_rules": "Rules",
  54. "setting_mode_direct": "Direct",
  55. "setting_mode_script": "Script",
  56. // proxie
  57. "proxie_title": 'Proxies',
  58. "proxie_group_title": "Policy Group",
  59. "proxie_provider_title": "Providers",
  60. "proxie_provider_update_time": "Last updated at",
  61. "proxie_expand": "Expand",
  62. "proxie_collapse": "Collapse",
  63. "proxie_speed_test": "Speed Test",
  64. "proxie_break_connections": "Close connections which include the group",
  65. // rule
  66. "rule_title": "Rules",
  67. "rule_provider_title": "Providers",
  68. "rule_provider_update_time": "Last updated at",
  69. "rule_rule_count": "Rule count",
  70. //route
  71. "route_sys_tile": "sysProxy",
  72. "route_tun_title": "tunProxy",
  73. // connection
  74. "connection_title": "Connections",
  75. "connection_keep_closed": "Keep closed connections",
  76. "connection_total": "(total: upload @upload download @download)",
  77. "connection_filter": "filter",
  78. "connection_close_all_title": "Warning",
  79. "connection_close_all_content": "This would close all connections",
  80. "connection_columns_host": "Host",
  81. "connection_columns_network": "Network",
  82. "connection_columns_process": "Type",
  83. "connection_columns_type": "Chains",
  84. "connection_columns_chains": "Process",
  85. "connection_columns_rule": "Rule",
  86. "connection_columns_time": "Time",
  87. "connection_columns_speed": "Speed",
  88. "connection_columns_upload": "Upload",
  89. "connection_columns_download": "Download",
  90. "connection_columns_source_ip": "Source IP",
  91. "connection_info_title": "Connection",
  92. "connection_info_id": "ID",
  93. "connection_info_host": "Host",
  94. "connection_info_empty": "Empty",
  95. "connection_info_dst_ip": "IP",
  96. "connection_info_src_ip": "Source",
  97. "connection_info_upload": "Upload",
  98. "connection_info_download": "Download",
  99. "connection_info_network": "Network",
  100. "connection_info_process": "Process",
  101. "connection_info_process_path": "Path",
  102. "connection_info_inbound": "Inbound",
  103. "connection_info_rule": "Rule",
  104. "connection_info_chains": "Chains",
  105. "connection_info_status": "Status",
  106. "connection_info_opening": "Open",
  107. "connection_info_closed": "Closed",
  108. "connection_info_close_connection": "Close",
  109. // profile
  110. "profile_title": "Profiles",
  111. "profile_update_interval": "Update interval",
  112. "profile_update_interval_min": "Not less than one minute!",
  113. "profile_update_interval_error": "Please enter the correct time!",
  114. "profile_hour": "Hour",
  115. "profile_columens_config_name": "Config name",
  116. "profile_columens_url": "URL",
  117. "profile_columens_update_time": "Update time",
  118. "profile_columens_traffic": "Used/Total",
  119. "profile_columens_expire": "Expiration",
  120. "profile_columens_open_config_folder": "Open config folder",
  121. "profile_columens_add_config": "Add config",
  122. "profile_config_add": "Add",
  123. "profile_config_edit": "Edit",
  124. "profile_config_ext_error": "Make sure the file suffix is .yaml",
  125. "profile_config_already_exists": "Config: @name already exists",
  126. "profile_config_no_change": "Config no change",
  127. "profile_config_update_error": "Update config: @name Error\nMsg: @msg",
  128. "profile_config_keep_one": "Keep at least one config file",
  129. "profile_config_mode_title": "Warning",
  130. "profile_config_mode_content": "Delete: @name config, disk files will be deleted!",
  131. "profile_config_mode_file_name": "name",
  132. "profile_config_mode_file_name_hint": "config.yaml",
  133. "profile_config_mode_url": "url",
  134. "profile_config_mode_url_hint": "The local config can be left blank",
  135. },
  136. 'zh_CN': {
  137. "clash_core_version": "内核版本",
  138. // tray
  139. "tray_restart_clash_core": "重启Core",
  140. "tray_show": "显示",
  141. "tray_copy_command_line_proxy": "复制命令行代理",
  142. "tray_about": "关于",
  143. "tray_exit": "退出",
  144. //node
  145. "node_tit" : "鼠标滚轮下滑选择节点",
  146. "node_auto" : "自动推荐",
  147. // modal
  148. "model_ok": "确 定",
  149. "model_cancel": "取 消",
  150. "model_delete": "删 除",
  151. // sidebar
  152. "sidebar_proxies": "代理",
  153. "sidebar_profiles": "配置",
  154. "sidebar_logs": "日志",
  155. "sidebar_rules": "规则",
  156. "sidebar_settings": "设置",
  157. "sidebar_connections": "连接",
  158. // setting
  159. "setting_title": "设置",
  160. "setting_start_at_login": "开机时启动",
  161. "setting_language": "语言",
  162. "setting_set_as_system_proxy": "设置为系统代理",
  163. "setting_allow_connect_from_lan": "允许来自局域网的连接",
  164. "setting_proxy_mode": "代理模式",
  165. "setting_socks5_proxy_port": "Socks5 代理端口",
  166. "setting_http_proxy_port": "HTTP 代理端口",
  167. "setting_mixed_proxy_port": "混合代理端口",
  168. "setting_external_controller": "外部控制设置",
  169. "setting_service_open": "开启服务",
  170. "setting_service_install": "开启服务",
  171. "setting_service_uninstall": "关闭服务",
  172. "setting_mode_global": "全局",
  173. "setting_mode_rules": "局部",
  174. "setting_mode_direct": "直连",
  175. "setting_mode_script": "脚本",
  176. // proxie
  177. "proxie_title": '代理',
  178. "proxie_group_title": "策略组",
  179. "proxie_provider_title": "代理集",
  180. "proxie_provider_update_time": "最后更新于",
  181. "proxie_expand": "展开",
  182. "proxie_collapse": "收起",
  183. "proxie_speed_test": "测速",
  184. "proxie_break_connections": "切换时打断包含策略组的连接",
  185. // rule
  186. "rule_title": "规则",
  187. "rule_provider_title": "规则集",
  188. "rule_provider_update_time": "最后更新于",
  189. "rule_rule_count": "规则条数",
  190. //route
  191. "route_sys_tile": "系统代理",
  192. "route_tun_title": "网卡模式",
  193. // connection
  194. "connection_title": "连接",
  195. "connection_keep_closed": "保留关闭连接",
  196. "connection_total": "(总量:上传 @upload 下载 @download)",
  197. "connection_filter": "过滤",
  198. "connection_close_all_title": "警告",
  199. "connection_close_all_content": "将会关闭所有连接",
  200. "connection_columns_host": "域名",
  201. "connection_columns_network": "网络",
  202. "connection_columns_process": "进程",
  203. "connection_columns_type": "类型",
  204. "connection_columns_chains": "节点链",
  205. "connection_columns_rule": "规则",
  206. "connection_columns_time": "连接时间",
  207. "connection_columns_speed": "速率",
  208. "connection_columns_upload": "上传",
  209. "connection_columns_download": "下载",
  210. "connection_columns_source_ip": "来源 IP",
  211. "connection_info_title": "连接信息",
  212. "connection_info_id": "ID",
  213. "connection_info_host": "域名",
  214. "connection_info_empty": "空",
  215. "connection_info_dst_ip": "IP",
  216. "connection_info_src_ip": "来源",
  217. "connection_info_upload": "上传",
  218. "connection_info_download": "下载",
  219. "connection_info_network": "网络",
  220. "connection_info_process": "进程",
  221. "connection_info_process_path": "路径",
  222. "connection_info_inbound": "入口",
  223. "connection_info_rule": "规则",
  224. "connection_info_chains": "代理",
  225. "connection_info_status": "状态",
  226. "connection_info_opening": "连接中",
  227. "connection_info_closed": "已关闭",
  228. "connection_info_close_connection": "关闭连接",
  229. // profile
  230. "profile_title": "配置",
  231. "profile_update_interval": "更新间隔",
  232. "profile_update_interval_min": "时间不可小于一分钟!",
  233. "profile_update_interval_error": "请输入正确的时间!",
  234. "profile_hour": "小时",
  235. "profile_columens_config_name": "配置文件名称",
  236. "profile_columens_url": "链接",
  237. "profile_columens_update_time": "更新时间",
  238. "profile_columens_traffic": "已用/总量",
  239. "profile_columens_expire": "过期时间",
  240. "profile_columens_open_config_folder": "打开配置文件夹",
  241. "profile_columens_add_config": "添加配置",
  242. "profile_config_add": "添加",
  243. "profile_config_edit": "编辑",
  244. "profile_config_ext_error": "请确保文件后缀名为.yaml",
  245. "profile_config_already_exists": "配置文件:@name 已存在",
  246. "profile_config_no_change": "配置无变化",
  247. "profile_config_update_error": "更新配置:@name 失败\nMsg: @msg",
  248. "profile_config_keep_one": "请至少保留一个配置文件",
  249. "profile_config_mode_title": "警告",
  250. "profile_config_mode_content": "删除:@name 配置,磁盘内文件会同时删除!",
  251. "profile_config_mode_file_name": "文件名",
  252. "profile_config_mode_file_name_hint": "config.yaml",
  253. "profile_config_mode_url": "地址",
  254. "profile_config_mode_url_hint": "本地配置可留空",
  255. }
  256. };
  257. }