Merge pull request #122818 from y1hao/fix-typo

Fix error in i18n package usage examples

Kubernetes-commit: e6659b60f88575d4c1037d0de41292aa3aba010f
This commit is contained in:
Kubernetes Publisher 2024-10-23 01:17:22 +01:00
commit 816c382177
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ import pkg/i18n
translated := i18n.T("Your message in english here")
// Get a translated plural string
translated := i18n.T("You had % items", items)
translated := i18n.T("You had %d items", items)
// Translated error
return i18n.Error("Something bad happened")