go/pkg/i18n/locales/en_GB.json
Snider 7d1b1809cb feat(i18n): add localized number formatting helpers
New i18n.* namespace patterns for number formatting:
- T("i18n.number", 1234567) → "1,234,567" (en) / "1.234.567" (de)
- T("i18n.decimal", 1234.56) → "1,234.56" (en) / "1.234,56" (de)
- T("i18n.percent", 0.85) → "85%" (en) / "85 %" (de)
- T("i18n.bytes", 1536000) → "1.5 MB" (en) / "1,5 MB" (de)
- T("i18n.ordinal", 3) → "3rd" (en) / "3." (de)

Also available as direct functions:
- FormatNumber(n), FormatDecimal(f), FormatPercent(f)
- FormatBytes(n), FormatOrdinal(n)

Language-aware formatting for en, de, fr, es, zh.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 14:39:15 +00:00

267 lines
11 KiB
JSON

{
"gram": {
"verb": {
"be": { "base": "be", "past": "was", "gerund": "being" },
"go": { "base": "go", "past": "went", "gerund": "going" },
"do": { "base": "do", "past": "did", "gerund": "doing" },
"have": { "base": "have", "past": "had", "gerund": "having" },
"make": { "base": "make", "past": "made", "gerund": "making" },
"get": { "base": "get", "past": "got", "gerund": "getting" },
"run": { "base": "run", "past": "ran", "gerund": "running" },
"write": { "base": "write", "past": "wrote", "gerund": "writing" },
"build": { "base": "build", "past": "built", "gerund": "building" },
"send": { "base": "send", "past": "sent", "gerund": "sending" },
"find": { "base": "find", "past": "found", "gerund": "finding" },
"take": { "base": "take", "past": "took", "gerund": "taking" },
"begin": { "base": "begin", "past": "began", "gerund": "beginning" },
"keep": { "base": "keep", "past": "kept", "gerund": "keeping" },
"hold": { "base": "hold", "past": "held", "gerund": "holding" },
"bring": { "base": "bring", "past": "brought", "gerund": "bringing" },
"think": { "base": "think", "past": "thought", "gerund": "thinking" },
"buy": { "base": "buy", "past": "bought", "gerund": "buying" },
"catch": { "base": "catch", "past": "caught", "gerund": "catching" },
"choose": { "base": "choose", "past": "chose", "gerund": "choosing" },
"lose": { "base": "lose", "past": "lost", "gerund": "losing" },
"win": { "base": "win", "past": "won", "gerund": "winning" },
"meet": { "base": "meet", "past": "met", "gerund": "meeting" },
"lead": { "base": "lead", "past": "led", "gerund": "leading" },
"leave": { "base": "leave", "past": "left", "gerund": "leaving" },
"spend": { "base": "spend", "past": "spent", "gerund": "spending" },
"pay": { "base": "pay", "past": "paid", "gerund": "paying" },
"sell": { "base": "sell", "past": "sold", "gerund": "selling" },
"commit": { "base": "commit", "past": "committed", "gerund": "committing" },
"stop": { "base": "stop", "past": "stopped", "gerund": "stopping" },
"scan": { "base": "scan", "past": "scanned", "gerund": "scanning" },
"format": { "base": "format", "past": "formatted", "gerund": "formatting" },
"set": { "base": "set", "past": "set", "gerund": "setting" },
"put": { "base": "put", "past": "put", "gerund": "putting" },
"cut": { "base": "cut", "past": "cut", "gerund": "cutting" },
"hit": { "base": "hit", "past": "hit", "gerund": "hitting" },
"sit": { "base": "sit", "past": "sat", "gerund": "sitting" },
"split": { "base": "split", "past": "split", "gerund": "splitting" },
"shut": { "base": "shut", "past": "shut", "gerund": "shutting" }
},
"noun": {
"file": { "one": "file", "other": "files" },
"repo": { "one": "repo", "other": "repos" },
"repository": { "one": "repository", "other": "repositories" },
"commit": { "one": "commit", "other": "commits" },
"branch": { "one": "branch", "other": "branches" },
"change": { "one": "change", "other": "changes" },
"item": { "one": "item", "other": "items" },
"issue": { "one": "issue", "other": "issues" },
"task": { "one": "task", "other": "tasks" },
"person": { "one": "person", "other": "people" },
"child": { "one": "child", "other": "children" },
"package": { "one": "package", "other": "packages" },
"artifact": { "one": "artifact", "other": "artifacts" },
"vulnerability": { "one": "vulnerability", "other": "vulnerabilities" },
"dependency": { "one": "dependency", "other": "dependencies" },
"directory": { "one": "directory", "other": "directories" },
"category": { "one": "category", "other": "categories" },
"query": { "one": "query", "other": "queries" }
},
"article": {
"indefinite": { "default": "a", "vowel": "an" },
"definite": "the"
},
"word": {
"url": "URL",
"id": "ID",
"ok": "OK",
"ci": "CI",
"qa": "QA",
"php": "PHP",
"sdk": "SDK",
"html": "HTML",
"cgo": "CGO",
"pid": "PID",
"cpus": "CPUs",
"ssh": "SSH",
"ssl": "SSL",
"api": "API",
"pr": "PR",
"vite": "Vite",
"pnpm": "pnpm",
"app_url": "app URL",
"blocked_by": "blocked by",
"claimed_by": "claimed by",
"related_files": "related files",
"up_to_date": "up to date",
"dry_run": "dry run",
"go_mod": "go.mod"
},
"punct": {
"label": ":",
"progress": "..."
},
"number": {
"thousands": ",",
"decimal": ".",
"percent": "%s%%"
}
},
"prompt": {
"yes": "y",
"no": "n",
"continue": "Continue?",
"proceed": "Proceed?",
"confirm": "Are you sure?",
"overwrite": "Overwrite?",
"discard": "Discard changes?"
},
"time": {
"just_now": "just now",
"ago": {
"second": { "one": "{{.Count}} second ago", "other": "{{.Count}} seconds ago" },
"minute": { "one": "{{.Count}} minute ago", "other": "{{.Count}} minutes ago" },
"hour": { "one": "{{.Count}} hour ago", "other": "{{.Count}} hours ago" },
"day": { "one": "{{.Count}} day ago", "other": "{{.Count}} days ago" },
"week": { "one": "{{.Count}} week ago", "other": "{{.Count}} weeks ago" }
}
},
"cmd": {
"ai": {
"short": "AI agent task management",
"claude.short": "Claude Code integration",
"task.short": "Show task details or auto-select a task",
"task.id_required": "task ID required (or use --auto)",
"task.no_pending": "No pending tasks available.",
"tasks.short": "List available tasks from core-agentic",
"task_commit.short": "Auto-commit changes with task reference",
"task_commit.no_changes": "No uncommitted changes to commit.",
"task_complete.short": "Mark a task as completed",
"task_pr.short": "Create a pull request for a task",
"task_pr.branch_error": "cannot create PR from {{.Branch}} branch; create a feature branch first",
"task_update.short": "Update task status or progress"
},
"build": {
"short": "Build projects with auto-detection and cross-compilation",
"error.invalid_target": "invalid target format \"{{.Target}}\", expected OS/arch (e.g., linux/amd64)",
"error.no_project_type": "no supported project type detected in {{.Dir}}\nSupported types: go (go.mod), wails (wails.json), node (package.json), php (composer.json)",
"from_path.short": "Build from a local directory",
"pwa.short": "Build from a live PWA URL",
"sdk.short": "Generate API SDKs from OpenAPI spec"
},
"ci": {
"short": "Publish releases (dry-run by default)",
"dry_run_hint": "(dry-run) use --we-are-go-for-launch to publish",
"go_for_launch": "GO FOR LAUNCH",
"init.short": "Initialize release configuration",
"changelog.short": "Generate changelog",
"version.short": "Show or set version"
},
"dev": {
"short": "Multi-repo development workflow",
"no_changes": "No uncommitted changes found.",
"no_git_repos": "No git repositories found.",
"confirm_claude_commit": "Have Claude commit these repos?",
"health.short": "Quick health check across all repos",
"commit.short": "Claude-assisted commits across repos",
"push.short": "Push commits across all repos",
"push.diverged": "branch has diverged from remote",
"push.diverged_help": "Some repos have diverged (local and remote have different commits).",
"push.uncommitted_changes_commit": "You have uncommitted changes. Commit with Claude first?",
"pull.short": "Pull updates across all repos",
"work.short": "Multi-repo git operations",
"work.use_commit_flag": "Use --commit to have Claude create commits",
"issues.short": "List open issues across all repos",
"reviews.short": "List PRs needing review across all repos",
"ci.short": "Check CI status across all repos",
"impact.short": "Show impact of changing a repo",
"impact.requires_registry": "impact analysis requires repos.yaml with dependency information",
"sync.short": "Synchronizes public service APIs with internal implementations",
"vm.short": "Dev environment commands",
"vm.not_installed": "dev environment not installed (run 'core dev install' first)",
"vm.not_running": "Dev environment is not running"
},
"docs": {
"short": "Documentation management",
"list.short": "List documentation across repos",
"sync.short": "Sync documentation to core-php/docs/packages/"
},
"doctor": {
"short": "Check development environment",
"ready": "Doctor: Environment ready",
"no_repos_yaml": "No repos.yaml found (run from workspace directory)",
"install_missing": "Install missing tools:",
"install_macos": "brew install git gh php composer node pnpm docker",
"ssh_missing": "SSH key missing - run: ssh-keygen && gh ssh-key add"
},
"go": {
"short": "Go development tools",
"test.short": "Run Go tests",
"cov.short": "Run tests with coverage report",
"fmt.short": "Format Go code",
"lint.short": "Run golangci-lint",
"install.short": "Install Go binary",
"mod.short": "Module management",
"work.short": "Workspace management"
},
"php": {
"short": "Laravel/PHP development tools",
"dev.short": "Start Laravel development environment",
"dev.press_ctrl_c": "Press Ctrl+C to stop all services",
"test.short": "Run PHP tests (PHPUnit/Pest)",
"fmt.short": "Format PHP code with Laravel Pint",
"analyse.short": "Run PHPStan static analysis",
"audit.short": "Security audit for dependencies",
"psalm.short": "Run Psalm static analysis",
"rector.short": "Automated code refactoring",
"infection.short": "Mutation testing for test quality",
"security.short": "Security vulnerability scanning",
"qa.short": "Run full QA pipeline",
"build.short": "Build Docker or LinuxKit image",
"deploy.short": "Deploy to Coolify",
"serve.short": "Run production container",
"ssl.short": "Setup SSL certificates with mkcert",
"packages.short": "Manage local PHP packages"
},
"pkg": {
"short": "Package management for core-* repos",
"install.short": "Clone a package from GitHub",
"list.short": "List installed packages",
"update.short": "Update installed packages",
"outdated.short": "Check for outdated packages",
"search.short": "Search GitHub for packages",
"error.invalid_repo_format": "invalid repo format: use org/repo (e.g., host-uk/core-php)"
},
"sdk": {
"short": "SDK validation and API compatibility tools",
"diff.short": "Check for breaking API changes",
"validate.short": "Validate OpenAPI spec"
},
"setup": {
"short": "Bootstrap workspace or clone packages from registry",
"complete": "Setup complete",
"bootstrap_mode": "Bootstrap mode (no repos.yaml found)",
"nothing_to_clone": "Nothing to clone.",
"wizard.select_packages": "Select packages to clone",
"wizard.what_to_do": "What would you like to do?"
},
"test": {
"short": "Run Go tests with coverage"
},
"vm": {
"short": "LinuxKit VM management",
"run.short": "Run a LinuxKit image or template",
"ps.short": "List running VMs",
"stop.short": "Stop a running VM",
"logs.short": "View VM logs",
"exec.short": "Execute a command in a VM",
"templates.short": "Manage LinuxKit templates"
}
},
"error": {
"gh_not_found": "'gh' CLI not found. Install from https://cli.github.com/",
"registry_not_found": "No repos.yaml found",
"repo_not_found": "Repository '{{.Name}}' not found"
},
"lang": {
"de": "German",
"en": "English",
"es": "Spanish",
"fr": "French",
"zh": "Chinese"
}
}