summaryrefslogtreecommitdiff
path: root/rola-cli/locales/errors
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-06-19 01:40:38 +0800
committer魏曹先生 <1992414357@qq.com>2026-06-19 01:40:38 +0800
commit1e9c97c21f8a4e55420712b054895ff8b4f9a849 (patch)
treec6bd37889deb54c024f974f368a9a7d654cad822 /rola-cli/locales/errors
parente078163c7cdbbf226c18d3e3afa7268a2878e18b (diff)
feat(rola-bucket): add bucket bind managementHEADmaster
Implement bucket bind CRUD operations and config loading, along with CLI integration for listing, setting, and removing bucket bindings.
Diffstat (limited to 'rola-cli/locales/errors')
-rw-r--r--rola-cli/locales/errors/common.toml25
-rw-r--r--rola-cli/locales/errors/i18n_space_error.toml23
2 files changed, 48 insertions, 0 deletions
diff --git a/rola-cli/locales/errors/common.toml b/rola-cli/locales/errors/common.toml
new file mode 100644
index 0000000..8c0acf8
--- /dev/null
+++ b/rola-cli/locales/errors/common.toml
@@ -0,0 +1,25 @@
+[en]
+command_not_found = """
+[[b_red]]**Error:**[[/]] Command not found: \"%{command}\"!
+
+[[b_yellow]]**Hint:**[[/]] You can use `rola -h` to query help.
+"""
+
+require_overwrite = """
+[[b_red]]**Operation blocked:**[[/]] This operation would overwrite an existing resource
+
+[[b_yellow]]**Hint:**[[/]] Explicitly specify [[b_red]]**--overwrite**[[/]]!
+"""
+
+[zh_CN]
+command_not_found = """
+[[b_red]]**错误:**[[/]]未找到命令 \"%{command}\"!
+
+[[b_yellow]]**提示:**[[/]]您可以使用 `rola -h` 来查询帮助。
+"""
+
+require_overwrite = """
+[[b_red]]**操作已阻止:**[[/]]该操作将会覆写已有资源
+
+[[b_yellow]]**提示:**[[/]]请显式指定 [[b_red]]**--overwrite**[[/]]!
+"""
diff --git a/rola-cli/locales/errors/i18n_space_error.toml b/rola-cli/locales/errors/i18n_space_error.toml
new file mode 100644
index 0000000..48c5aa1
--- /dev/null
+++ b/rola-cli/locales/errors/i18n_space_error.toml
@@ -0,0 +1,23 @@
+[en]
+space_not_found = "Space not found"
+path_format = "Path format error: {info}"
+require_empty_directory = "The specified directory is not empty"
+config_file_already_exist = "Configuration file already exists"
+io_error_name = "Space IO error"
+io_not_found = "{info}"
+io_permission_denied = "{info}"
+io_already_exists = "{info}"
+io_invalid_input = "{info}"
+io_other = "{info}"
+
+[zh_CN]
+space_not_found = "未找到空间"
+path_format = "路径格式错误: {info}"
+require_empty_directory = "指定目录不为空"
+config_file_already_exist = "配置文件已存在"
+io_error_name = "空间 IO 错误"
+io_not_found = "{info}"
+io_permission_denied = "{info}"
+io_already_exists = "{info}"
+io_invalid_input = "{info}"
+io_other = "{info}"