Module: Clacky::Locales

Defined in:
lib/clacky/locales/en.rb,
lib/clacky/locales/zh.rb

Constant Summary collapse

EN =
{
  "llm.error.insufficient_credit"   => "Insufficient credit, please top up your account to continue",
  "llm.error.rate_limit_400"        => "Rate limit or service issue, retrying...",
  "llm.error.invalid_api_key"       => "Invalid API key, please check your configuration",
  "llm.error.403.model_not_allowed" => "This model is not available on your current plan",
  "llm.error.403.api_key_revoked"   => "API key has been revoked, please generate a new one",
  "llm.error.403.api_key_expired"   => "API key has expired, please generate a new one",
  "llm.error.403.quota_exceeded"    => "Quota exceeded, please upgrade your plan",
  "llm.error.403.access_denied"     => "Access denied, please check your API key permissions",
  "llm.error.403.default"           => "Access denied",
  "llm.error.endpoint_not_found"    => "API endpoint not found, please check your service URL",
  "llm.error.rate_limit_429"        => "Rate limit exceeded, please wait a moment",
  "llm.error.server_error"          => "Service temporarily unavailable (%<status>d), retrying...",
  "llm.error.unexpected"            => "Unexpected error (%<status>d)",
  "llm.error.html_response"         => "Service temporarily unavailable (received HTML error page), retrying...",
  "llm.error.bad_request"           => "Bad request: invalid parameters. Please check your model configuration",
  "llm.error.request_timeout"       => "Request timed out after %<retries>d retries",
  "llm.error.network_failed"        => "Network connection failed after %<retries>d retries",
  "llm.error.service_unavailable"   => "Service unavailable after %<retries>d retries",
  "platform.error.invalid_proof"        => "Invalid license key — please check and try again.",
  "platform.error.invalid_signature"    => "Invalid request signature.",
  "platform.error.nonce_replayed"       => "Duplicate request detected. Please try again.",
  "platform.error.timestamp_expired"    => "System clock is out of sync. Please adjust your time settings.",
  "platform.error.license_revoked"      => "This license has been revoked. Please contact support.",
  "platform.error.license_expired"      => "This license has expired. Please renew to continue.",
  "platform.error.device_limit_reached" => "Device limit reached for this license.",
  "platform.error.device_revoked"       => "This device has been revoked from the license.",
  "platform.error.invalid_license"      => "License key not found. Please verify the key.",
  "platform.error.device_not_found"     => "Device not registered. Please re-activate.",
  "platform.error.contributor_required" => "Publishing extensions requires becoming a contributor. Sign in, open \"My Extensions\", and click \"Become a contributor\" (no review needed).",
  "platform.error.missing_device_token" => "This device is not bound to a platform account. Authorize it before publishing.",
  "platform.error.invalid_device_token" => "Device authorization is invalid. Please re-authorize this device.",
  "platform.error.device_token_revoked" => "This device's authorization has been revoked. Please re-authorize before publishing.",
  "platform.error.device_token_expired" => "This device's authorization has expired. Please re-authorize before publishing.",
  "platform.error.owner_user_not_found" => "No account found for this device. Please re-authorize it.",
  "platform.error.generic"              => "Request failed (HTTP %<code>s). Please contact support.",
  "platform.error.generic_with_code"    => "Request failed (HTTP %<code>s, code: %<error_code>s). Please contact support."
}.freeze
ZH =
{
  "llm.error.insufficient_credit"   => "账户余额不足,请前往控制台充值后继续使用",
  "llm.error.rate_limit_400"        => "请求频率过高或服务暂时不可用,正在重试...",
  "llm.error.invalid_api_key"       => "API 密钥无效,请检查配置",
  "llm.error.403.model_not_allowed" => "当前模型不支持免费试用,请升级套餐或切换其他模型",
  "llm.error.403.api_key_revoked"   => "API 密钥已被撤销,请前往控制台重新生成",
  "llm.error.403.api_key_expired"   => "API 密钥已过期,请前往控制台重新生成",
  "llm.error.403.quota_exceeded"    => "配额已用完,请升级套餐",
  "llm.error.403.access_denied"     => "访问被拒绝,请检查 API 密钥权限",
  "llm.error.403.default"           => "访问被拒绝",
  "llm.error.endpoint_not_found"    => "API 端点不存在,请检查服务地址配置",
  "llm.error.rate_limit_429"        => "请求过于频繁,请稍候重试",
  "llm.error.server_error"          => "服务暂时不可用(%<status>d),正在重试...",
  "llm.error.unexpected"            => "请求失败(%<status>d)",
  "llm.error.html_response"         => "服务暂时不可用(收到 HTML 错误页),正在重试...",
  "llm.error.bad_request"           => "请求参数有误,请检查模型配置或重试",
  "llm.error.request_timeout"       => "请求超时(已重试 %<retries>d 次)",
  "llm.error.network_failed"        => "网络连接失败(已重试 %<retries>d 次)",
  "llm.error.service_unavailable"   => "服务暂时不可用(已重试 %<retries>d 次)",
  "platform.error.invalid_proof"        => "许可证密钥无效,请检查后重试。",
  "platform.error.invalid_signature"    => "请求签名无效。",
  "platform.error.nonce_replayed"       => "检测到重复请求,请重试。",
  "platform.error.timestamp_expired"    => "系统时钟不同步,请校准本机时间后重试。",
  "platform.error.license_revoked"      => "该许可证已被吊销,请联系客服。",
  "platform.error.license_expired"      => "该许可证已过期,请续订后继续。",
  "platform.error.device_limit_reached" => "该许可证的设备数量已达上限。",
  "platform.error.device_revoked"       => "该设备已从许可证中移除。",
  "platform.error.invalid_license"      => "未找到许可证密钥,请核对后重试。",
  "platform.error.device_not_found"     => "设备未注册,请重新激活。",
  "platform.error.contributor_required" => "发布扩展需要先成为扩展贡献者。请登录平台,打开「我的扩展」页面,点击「成为扩展贡献者」即可开通(无需审核)。",
  "platform.error.missing_device_token" => "当前设备未绑定平台账户,请先授权此设备后再发布。",
  "platform.error.invalid_device_token" => "设备授权已失效,请重新授权此设备。",
  "platform.error.device_token_revoked" => "此设备的授权已被撤销,请重新授权后再发布。",
  "platform.error.device_token_expired" => "此设备的授权已过期,请重新授权后再发布。",
  "platform.error.owner_user_not_found" => "未找到该设备对应的账户,请重新授权此设备。",
  "platform.error.generic"              => "请求失败(HTTP %<code>s),请联系客服。",
  "platform.error.generic_with_code"    => "请求失败(HTTP %<code>s,错误码:%<error_code>s),请联系客服。"
}.freeze