Fix typo in i18n usage examples

Kubernetes-commit: e9c30951051b66bb5050d0d5bf622d4ef7a4481c
This commit is contained in:
Yihao Wang 2024-01-17 13:12:21 +13:00 committed by Kubernetes Publisher
parent 4c8c153513
commit 9a6ad3e08e
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")