wip(app): i18n

This commit is contained in:
Adam
2026-01-20 10:10:43 -06:00
parent 7a359ff67c
commit 7e8e4d9938
5 changed files with 195 additions and 94 deletions

View File

@@ -289,6 +289,38 @@ export const dict = {
"toast.update.action.installRestart": "Install and restart",
"toast.update.action.notYet": "Not yet",
"error.page.title": "Something went wrong",
"error.page.description": "An error occurred while loading the application.",
"error.page.details.label": "Error Details",
"error.page.action.restart": "Restart",
"error.page.action.checking": "Checking...",
"error.page.action.checkUpdates": "Check for updates",
"error.page.action.updateTo": "Update to {{version}}",
"error.page.report.prefix": "Please report this error to the OpenCode team",
"error.page.report.discord": "on Discord",
"error.page.version": "Version: {{version}}",
"error.chain.unknown": "Unknown error",
"error.chain.causedBy": "Caused by:",
"error.chain.apiError": "API error",
"error.chain.status": "Status: {{status}}",
"error.chain.retryable": "Retryable: {{retryable}}",
"error.chain.responseBody": "Response body:\n{{body}}",
"error.chain.didYouMean": "Did you mean: {{suggestions}}",
"error.chain.modelNotFound": "Model not found: {{provider}}/{{model}}",
"error.chain.checkConfig": "Check your config (opencode.json) provider/model names",
"error.chain.mcpFailed":
"MCP server \"{{name}}\" failed. Note, OpenCode does not support MCP authentication yet.",
"error.chain.providerAuthFailed": "Provider authentication failed ({{provider}}): {{message}}",
"error.chain.providerInitFailed": "Failed to initialize provider \"{{provider}}\". Check credentials and configuration.",
"error.chain.configJsonInvalid": "Config file at {{path}} is not valid JSON(C)",
"error.chain.configJsonInvalidWithMessage": "Config file at {{path}} is not valid JSON(C): {{message}}",
"error.chain.configDirectoryTypo":
"Directory \"{{dir}}\" in {{path}} is not valid. Rename the directory to \"{{suggestion}}\" or remove it. This is a common typo.",
"error.chain.configFrontmatterError": "Failed to parse frontmatter in {{path}}:\n{{message}}",
"error.chain.configInvalid": "Config file at {{path}} is invalid",
"error.chain.configInvalidWithMessage": "Config file at {{path}} is invalid: {{message}}",
"notification.permission.title": "Permission required",
"notification.permission.description": "{{sessionTitle}} in {{projectName}} needs permission",
"notification.question.title": "Question",
@@ -312,6 +344,20 @@ export const dict = {
"session.context.addToContext": "Add {{selection}} to context",
"session.header.search.placeholder": "Search {{project}}",
"session.share.popover.title": "Publish on web",
"session.share.popover.description.shared": "This session is public on the web. It is accessible to anyone with the link.",
"session.share.popover.description.unshared": "Share session publicly on the web. It will be accessible to anyone with the link.",
"session.share.action.share": "Share",
"session.share.action.publish": "Publish",
"session.share.action.publishing": "Publishing...",
"session.share.action.unpublish": "Unpublish",
"session.share.action.unpublishing": "Unpublishing...",
"session.share.action.view": "View",
"session.share.copy.copied": "Copied",
"session.share.copy.copyLink": "Copy link",
"prompt.loading": "Loading prompt...",
"terminal.loading": "Loading terminal...",