From 8311f4324ccfd706956cfe9e21885b69d7af3b40 Mon Sep 17 00:00:00 2001 From: Qiming Teng Date: Thu, 3 Mar 2022 18:47:11 +0800 Subject: [PATCH] Make FEATURE STATE localizable Add i18n string for FEATURE STATE, for ease of localization. --- data/i18n/en/en.toml | 5 ++++- layouts/shortcodes/feature-state.html | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/data/i18n/en/en.toml b/data/i18n/en/en.toml index a4b0125e67..1cf54e6a09 100644 --- a/data/i18n/en/en.toml +++ b/data/i18n/en/en.toml @@ -69,6 +69,9 @@ other = "Were you looking for:" [examples_heading] other = "Examples" +[feature_state] +other = "FEATURE STATE:" + [feedback_heading] other = "Feedback" @@ -269,4 +272,4 @@ other = "Versions" other = "Warning:" [whatsnext_heading] -other = "What's next" \ No newline at end of file +other = "What's next" diff --git a/layouts/shortcodes/feature-state.html b/layouts/shortcodes/feature-state.html index a9cf606384..828241f50e 100644 --- a/layouts/shortcodes/feature-state.html +++ b/layouts/shortcodes/feature-state.html @@ -6,6 +6,6 @@ {{ errorf "%q is not a valid feature-state, use one of %q" $state $valid_states }} {{ else }}
-FEATURE STATE: Kubernetes {{ $for_k8s_version }} [{{ $state }}] + {{ T "feature_state" }} Kubernetes {{ $for_k8s_version }} [{{ $state }}]
{{ end }}