Merge pull request #122818 from y1hao/fix-typo

Fix error in i18n package usage examples
This commit is contained in:
Kubernetes Prow Robot 2024-10-23 01:17:22 +01:00 committed by GitHub
commit e6659b60f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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")