diff --git a/i18n/en/en.toml b/i18n/en/en.toml index 74bc2c25700f9..4ec5c6a6c2ec4 100644 --- a/i18n/en/en.toml +++ b/i18n/en/en.toml @@ -174,7 +174,10 @@ other = "Error" other = "Examples" [feature_gate_enabled] -other = "(enabled by default: {{ .enabled }})" +other = "(enabled by default)" + +[feature_gate_disabled] +other = "(disabled by default)" [feature_gate_stage_alpha] other = "Alpha" diff --git a/layouts/shortcodes/feature-state.html b/layouts/shortcodes/feature-state.html index 30c39cd334214..1689d0c13aa83 100644 --- a/layouts/shortcodes/feature-state.html +++ b/layouts/shortcodes/feature-state.html @@ -34,7 +34,12 @@
{{ T "feature_state_kubernetes_label" }} v{{ .fromVersion }} [{{ .stage }}]
{{ T "feature_gate_enabled" (dict "enabled" .defaultValue) }}
+ {{ T "feature_state_kubernetes_label" }} v{{ .fromVersion }} [{{ .stage }}]
+ {{- if eq .defaultValue true -}}
+ {{ T "feature_gate_enabled" }}
+ {{- else -}}
+ {{ T "feature_gate_disabled" }}
+ {{- end -}}