feat(partnerctl-init): add i18n message bundles for init flow and source build output

This commit is contained in:
2026-05-05 22:37:41 +08:00
parent 0710f60ed6
commit 9073f88117
7 changed files with 294 additions and 89 deletions

View File

@@ -0,0 +1,91 @@
init.home.section=初始化 Partner Home
init.home.label=Partner Home
init.home.success=Partner Home 已初始化:{0}
init.home.duplicate.warning=Partner Home 已包含文件:{0}
init.home.duplicate.choice.label=Partner Home 已包含文件,请选择如何继续
init.home.duplicate.choice.another=使用另一个 Partner Home
init.home.duplicate.choice.another.description=重新选择一个目录
init.home.duplicate.choice.overwrite=覆盖当前 Partner Home
init.home.duplicate.choice.overwrite.description=删除现有内容并继续
init.home.duplicate.choice.exit=取消初始化
init.home.duplicate.confirmDelete=确定删除 {0} 下的所有文件?
init.home.notDirectory=Partner Home 不是目录:{0}
init.home.overwrite.refuseRoot=拒绝覆盖文件系统根目录:{0}
init.home.overwrite.refuseUserHome=拒绝覆盖用户主目录:{0}
init.home.overwrite.refuseBroadDirectory=拒绝覆盖范围过大的目录:{0}
init.install.section=安装 Partner
init.install.method.label=选择安装方式
init.install.method.buildFromSource=从源码构建 Partner
init.gateway.section=配置网关
init.gateway.select.label=选择网关
init.gateway.websocket.choice=WebSocket Gateway
init.gateway.warn.notFound=找不到 id 为 {0} 的网关
init.gateway.warn.skipped=网关:{0} 配置已跳过
init.gateway.info.skippedUseDefault=已跳过网关配置。Partner 将使用 WebSocket 作为默认网关
init.gateway.defaultChannel.label=设置默认 channel
init.gateway.info.defaultChannel=默认 channel 将设置为 {0}
init.gateway.success.configWritten=网关配置已写入 {0}
init.model.section=配置模型
init.model.provider.default.label=选择默认模型 provider 类型
init.model.provider.label=选择模型 provider 类型
init.model.warn.noDefaultProvider=没有配置默认模型 provider。除非 model.json 已存在,或运行时提供 PARTNER_DEFAULT_BASE_URL、PARTNER_DEFAULT_API_KEY 和 PARTNER_DEFAULT_MODEL否则 Partner 可能无法正常启动。
init.model.confirm.skipConfiguration=跳过模型配置?
init.model.confirm.addAdditionalProvider=添加额外模型 provider
init.model.success.configWritten=模型配置已写入 {0}
init.finish.section=完成
init.finish.confirm.startNow=现在启动 Partner
init.finish.info.completed=初始化完成。
init.finish.info.starting=正在启动 Partner...
configure.gateway.websocket.section=配置网关WebSocket Gateway
configure.gateway.websocket.port.label=端口
configure.gateway.websocket.port.error.int=WebSocket 端口只接受整数
configure.gateway.websocket.port.error.range=WebSocket 端口应在 1 到 65565 之间
configure.gateway.websocket.heartbeatInterval.label=心跳间隔
configure.gateway.websocket.heartbeatInterval.error.long=心跳间隔只接受 long 数值
configure.gateway.websocket.hostname.label=监听主机名
configure.gateway.websocket.hostname.error.required=主机名不能为空
configure.gateway.websocket.hostname.error.whitespace=主机名不能包含空白字符。
configure.gateway.websocket.hostname.error.protocol=不要包含协议。只填写主机名例如127.0.0.1
configure.gateway.websocket.hostname.error.path=不要包含路径。只填写主机名。
configure.gateway.websocket.hostname.error.port=不要在这里填写端口。端口会单独配置。
configure.gateway.external.section=配置网关:{0}
configure.gateway.external.details.title=网关模块详情
configure.gateway.external.details.description=描述
configure.gateway.external.details.source=来源
configure.gateway.external.details.buildCommand=构建命令
configure.gateway.external.details.artifact=构建产物
configure.gateway.external.details.installTarget=安装目标
configure.gateway.external.details.configTarget=配置目标
configure.gateway.external.details.noConfig=无配置
configure.gateway.external.confirmContinue=继续安装?
configure.field.error.int={0} 只接受整数
configure.field.error.number={0} 只接受数字
configure.field.error.boolean={0} 只接受 true 或 false
configure.field.error.rawJson={0} 只接受合法 JSON
configure.model.openAiCompatible.providerName.label=Provider 名称
configure.model.openAiCompatible.providerName.error.duplicateDefault=Default provider 不能重复
configure.model.openAiCompatible.baseUrl.label=Base url
configure.model.openAiCompatible.apiKey.label=Apikey
configure.model.openAiCompatible.defaultModel.label=Default model
configure.model.openAiCompatible.baseUrl.error.required=Base url 不能为空
configure.model.openAiCompatible.baseUrl.error.validUrl=Base url 必须是合法 URL
configure.model.openAiCompatible.baseUrl.error.scheme=Base url 必须以 http:// 或 https:// 开头
configure.model.openAiCompatible.baseUrl.error.host=Base url 必须包含合法 host
configure.model.openAiCompatible.baseUrl.error.userInfo=Base url 不能包含 user info
configure.model.openAiCompatible.baseUrl.error.fragment=Base url 不能包含 fragment
sourceBuild.info.cloning=正在从 {1} 克隆 {0} 源码
sourceBuild.error.cloneFailed=从 {1} 克隆 {0} 源码失败
sourceBuild.info.building=正在构建 {0}
sourceBuild.error.buildFailed=构建 {0} 失败。
sourceBuild.error.artifactNotFound=在 {1} 中找不到已构建的 {0} 产物
sourceBuild.success.installed={0} 已安装到 {1}
sourceBuild.tool.missing.header=缺少必要的构建工具:
sourceBuild.tool.missing.item={0}
sourceBuild.tool.missing.reason= {0}
sourceBuild.tool.missing.footer=安装缺失工具后重新运行:
sourceBuild.tool.java.reason=运行 Maven 需要 java。命令失败java --version
sourceBuild.tool.javac.reason=从源码编译 Partner 需要 javac。请安装 JDK而不只是 JRE。命令失败javac --version
sourceBuild.tool.git.reason=克隆 Partner 源码需要 git。命令失败git --version
sourceBuild.tool.mvn.reason=从源码构建 Partner 需要 mvn。命令失败mvn --version