Localization instructions (#9192)

* Begin re-working localization instructions

* Fix dangling sentence

* Re-arrange sections plus new content

* Fix TOC issue with misplaced capture directive

* Create new shortcodes for versions and language repos

* Add more translation instructions

* Remove translation docs added as an example

* Finish draft of localization doc

* Remove extraneous note
This commit is contained in:
Luc Perkins
2018-07-27 17:13:56 -07:00
committed by k8s-ci-robot
parent c36098d4be
commit 1778e77165
6 changed files with 137 additions and 47 deletions
@@ -0,0 +1,38 @@
{{- $languages := .Site.Home.AllTranslations }}
<table>
<thead>
<tr>
<th>
Language
</th>
<th>
Language code
</th>
<th>
Repository
</th>
</tr>
</thead>
<tbody>
{{- range $languages.ByWeight }}
{{- $name := .Language.LanguageName }}
{{- $code := string .Language }}
{{- $repo := printf "https://github.com/%s" (index .Site.Data.repos $code) }}
<tr>
<td>
<a href="{{ .Permalink }}">
{{ $name }}
</a>
</td>
<td>
<code>{{ $code }}</code>
</td>
<td>
<a href="{{ $repo }}">
{{ $repo }}
</a>
</td>
</tr>
{{- end }}
</tbody>
</table>
+1
View File
@@ -0,0 +1 @@
{{ .Site.Params.latest }}
+3
View File
@@ -0,0 +1,3 @@
{{- $latestVersion := .Site.Params.latest }}
{{- $latestReleaseBranch := printf "release-%s" (replace $latestVersion "v" "") }}
{{- $latestReleaseBranch }}