mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 18:00:08 +00:00
Merge pull request #122818 from y1hao/fix-typo
Fix error in i18n package usage examples
This commit is contained in:
commit
e6659b60f8
@ -72,7 +72,7 @@ import pkg/i18n
|
|||||||
translated := i18n.T("Your message in english here")
|
translated := i18n.T("Your message in english here")
|
||||||
|
|
||||||
// Get a translated plural string
|
// Get a translated plural string
|
||||||
translated := i18n.T("You had % items", items)
|
translated := i18n.T("You had %d items", items)
|
||||||
|
|
||||||
// Translated error
|
// Translated error
|
||||||
return i18n.Error("Something bad happened")
|
return i18n.Error("Something bad happened")
|
||||||
|
Loading…
Reference in New Issue
Block a user