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:
committed by
k8s-ci-robot
parent
c36098d4be
commit
1778e77165
@@ -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>
|
||||
@@ -0,0 +1 @@
|
||||
{{ .Site.Params.latest }}
|
||||
@@ -0,0 +1,3 @@
|
||||
{{- $latestVersion := .Site.Params.latest }}
|
||||
{{- $latestReleaseBranch := printf "release-%s" (replace $latestVersion "v" "") }}
|
||||
{{- $latestReleaseBranch }}
|
||||
Reference in New Issue
Block a user