From aca8b408755f9041da9ee083c625de2a8d8c6785 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Thu, 22 Jan 2026 08:32:29 +0800 Subject: Refactor CLI command processing with new architecture --- resources/locales/jvn/en.yml | 35 +++++++++++++++++++++++++++++++++++ resources/locales/jvn/zh-CN.yml | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 resources/locales/jvn/en.yml create mode 100644 resources/locales/jvn/zh-CN.yml (limited to 'resources') diff --git a/resources/locales/jvn/en.yml b/resources/locales/jvn/en.yml new file mode 100644 index 0000000..525d8c5 --- /dev/null +++ b/resources/locales/jvn/en.yml @@ -0,0 +1,35 @@ +process_error: + prepare_error: | + [[YELLOW]]Preparation Phase Error:[[/]] + %{error} + execute_error: | + [[RED]]Execution Phase Error:[[/]] + %{error} + render_error: | + [[YELLOW]]Rendering Phase Error:[[/]] + %{error} + + Tip: If you need to ignore error output, + please append the `--no-error-logs` parameter to the command. + + no_matching_command: | + No matching command found! + + ambiguous_command: | + Multiple commands found, unable to determine which one you want: + %{nodes} + + no_node_found: | + Unable to find command `%{node}` + + This is usually a compilation-phase issue, not a user input error. + Please use `jv -v -C` to get detailed version traceback and contact the developers. + + github: https://github.com/JustEnoughVCS/CommandLine/ + + parse_error: | + An error occurred while parsing your command arguments! + Please use `jv --help` to view help + + other: | + %{error} diff --git a/resources/locales/jvn/zh-CN.yml b/resources/locales/jvn/zh-CN.yml new file mode 100644 index 0000000..ffb033c --- /dev/null +++ b/resources/locales/jvn/zh-CN.yml @@ -0,0 +1,34 @@ +process_error: + prepare_error: | + [[YELLOW]]准备阶段错误:[[/]] + %{error} + execute_error: | + [[RED]]执行阶段错误:[[/]] + %{error} + render_error: | + [[YELLOW]]渲染阶段错误:[[/]] + %{error} + + 提示:若您需要忽略错误输出,请在命令后追加 `--no-error-logs` 参数 + + no_matching_command: | + 无法找到匹配的命令! + + ambiguous_command: | + 找到多个命令,无法确定您想要哪一个: + %{nodes} + + no_node_found: | + 无法找到命令 `%{node}` + + 这通常是编译期造成的问题,而非用户的错误输入 + 请使用 `jv -v -C` 获得详细的版本追溯,并联系开发人员 + + github: https://github.com/JustEnoughVCS/CommandLine/ + + parse_error: | + 在将您的命令参数进行解析时出现错误! + 请使用 `jv <命令> --help` 查看帮助 + + other: | + %{error} -- cgit