From 7960ba7e2bbe2eb6f98f6d99f2ce105468cdf56e Mon Sep 17 00:00:00 2001 From: delvh Date: Mon, 25 Sep 2023 10:56:50 +0200 Subject: Always use `ctx.Locale.Tr` inside templates (#27231) --- templates/package/content/helm.tmpl | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'templates/package/content/helm.tmpl') diff --git a/templates/package/content/helm.tmpl b/templates/package/content/helm.tmpl index 44d01b6013..68e53133f1 100644 --- a/templates/package/content/helm.tmpl +++ b/templates/package/content/helm.tmpl @@ -1,37 +1,37 @@ {{if eq .PackageDescriptor.Package.Type "helm"}} -

{{.locale.Tr "packages.installation"}}

+

{{ctx.Locale.Tr "packages.installation"}}

- +
helm repo add {{AppDomain}} 
 helm repo update
- +
helm install {{.PackageDescriptor.Package.Name}} {{AppDomain}}/{{.PackageDescriptor.Package.Name}}
- +
{{if .PackageDescriptor.Metadata.Description}} -

{{.locale.Tr "packages.about"}}

+

{{ctx.Locale.Tr "packages.about"}}

{{.PackageDescriptor.Metadata.Description}}
{{end}} {{if .PackageDescriptor.Metadata.Dependencies}} -

{{.locale.Tr "packages.dependencies"}}

+

{{ctx.Locale.Tr "packages.dependencies"}}

- - + + @@ -47,7 +47,7 @@ helm repo update {{end}} {{if .PackageDescriptor.Metadata.Keywords}} -

{{.locale.Tr "packages.keywords"}}

+

{{ctx.Locale.Tr "packages.keywords"}}

{{range .PackageDescriptor.Metadata.Keywords}} {{.}} -- cgit v1.2.3
{{.locale.Tr "packages.dependency.id"}}{{.locale.Tr "packages.dependency.version"}}{{ctx.Locale.Tr "packages.dependency.id"}}{{ctx.Locale.Tr "packages.dependency.version"}}