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>
69 lines
2.6 KiB
JSON
69 lines
2.6 KiB
JSON
{
|
|
"gram": {
|
|
"verb": {
|
|
"delete": { "base": "löschen", "past": "gelöscht", "gerund": "löschend" },
|
|
"save": { "base": "speichern", "past": "gespeichert", "gerund": "speichernd" },
|
|
"create": { "base": "erstellen", "past": "erstellt", "gerund": "erstellend" },
|
|
"update": { "base": "aktualisieren", "past": "aktualisiert", "gerund": "aktualisierend" },
|
|
"build": { "base": "bauen", "past": "gebaut", "gerund": "bauend" },
|
|
"run": { "base": "laufen", "past": "gelaufen", "gerund": "laufend" },
|
|
"check": { "base": "prüfen", "past": "geprüft", "gerund": "prüfend" },
|
|
"install": { "base": "installieren", "past": "installiert", "gerund": "installierend" },
|
|
"push": { "base": "pushen", "past": "gepusht", "gerund": "pushend" },
|
|
"pull": { "base": "pullen", "past": "gepullt", "gerund": "pullend" },
|
|
"commit": { "base": "committen", "past": "committet", "gerund": "committend" }
|
|
},
|
|
"noun": {
|
|
"file": { "one": "Datei", "other": "Dateien", "gender": "feminine" },
|
|
"repo": { "one": "Repository", "other": "Repositories", "gender": "neuter" },
|
|
"commit": { "one": "Commit", "other": "Commits", "gender": "masculine" },
|
|
"branch": { "one": "Branch", "other": "Branches", "gender": "masculine" },
|
|
"change": { "one": "Änderung", "other": "Änderungen", "gender": "feminine" },
|
|
"item": { "one": "Element", "other": "Elemente", "gender": "neuter" }
|
|
},
|
|
"article": {
|
|
"indefinite": { "masculine": "ein", "feminine": "eine", "neuter": "ein" },
|
|
"definite": { "masculine": "der", "feminine": "die", "neuter": "das" }
|
|
},
|
|
"punct": {
|
|
"label": ":",
|
|
"progress": "..."
|
|
},
|
|
"number": {
|
|
"thousands": ".",
|
|
"decimal": ",",
|
|
"percent": "%s %%"
|
|
}
|
|
},
|
|
"prompt": {
|
|
"yes": "j",
|
|
"no": "n",
|
|
"continue": "Weiter?",
|
|
"proceed": "Fortfahren?",
|
|
"confirm": "Sind Sie sicher?"
|
|
},
|
|
"time": {
|
|
"just_now": "gerade eben",
|
|
"ago": {
|
|
"second": { "one": "vor {{.Count}} Sekunde", "other": "vor {{.Count}} Sekunden" },
|
|
"minute": { "one": "vor {{.Count}} Minute", "other": "vor {{.Count}} Minuten" },
|
|
"hour": { "one": "vor {{.Count}} Stunde", "other": "vor {{.Count}} Stunden" },
|
|
"day": { "one": "vor {{.Count}} Tag", "other": "vor {{.Count}} Tagen" },
|
|
"week": { "one": "vor {{.Count}} Woche", "other": "vor {{.Count}} Wochen" }
|
|
}
|
|
},
|
|
"cmd": {
|
|
"dev.short": "Multi-Repository-Entwicklung",
|
|
"doctor.short": "Entwicklungsumgebung prüfen"
|
|
},
|
|
"error": {
|
|
"gh_not_found": "'gh' CLI nicht gefunden. Installieren von https://cli.github.com/"
|
|
},
|
|
"lang": {
|
|
"de": "Deutsch",
|
|
"en": "Englisch",
|
|
"es": "Spanisch",
|
|
"fr": "Französisch",
|
|
"zh": "Chinesisch"
|
|
}
|
|
}
|