diff --git a/i18n/de.yaml b/i18n/de.yaml new file mode 100644 index 0000000..d1f125e --- /dev/null +++ b/i18n/de.yaml @@ -0,0 +1,5 @@ +- id: get-started + translation: "Loslegen" + +- id: on-this-page + translation: "Auf dieser Seite" diff --git a/i18n/en.toml b/i18n/en.toml deleted file mode 100644 index cb52685..0000000 --- a/i18n/en.toml +++ /dev/null @@ -1,2 +0,0 @@ -[get-started] - other = "Get Started" \ No newline at end of file diff --git a/i18n/en.yaml b/i18n/en.yaml new file mode 100644 index 0000000..05ff248 --- /dev/null +++ b/i18n/en.yaml @@ -0,0 +1,17 @@ +- id: get-started + translation: "Get Started" + +- id: on-this-page + translation: "On this page" + +- id: search-text + translation: "Search docs..." + +- id: 404-title + translation: "Page not found :(" + +- id: 404-text + translation: "The page you are looking for doesn't exist or has been moved." + +- id: browse + translation: "Browse" diff --git a/i18n/nl.toml b/i18n/nl.toml deleted file mode 100644 index f80323e..0000000 --- a/i18n/nl.toml +++ /dev/null @@ -1,2 +0,0 @@ -[get-started] - other = "Aan de slag" \ No newline at end of file diff --git a/i18n/nl.yaml b/i18n/nl.yaml new file mode 100644 index 0000000..2899eda --- /dev/null +++ b/i18n/nl.yaml @@ -0,0 +1,17 @@ +- id: get-started + translation: "Aan de slag" + +- id: on-this-page + translation: "Op deze pagina" + +- id: search-text + translation: "Zoeken..." + +- id: 404-title + translation: "Pagina niet gevonden :(" + +- id: 404-text + translation: "De gezochte pagina bestaat niet of deze is verplaatst." + +- id: browse + translation: "Browse" diff --git a/layouts/404.html b/layouts/404.html index f1fe6bf..76d447a 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -2,8 +2,8 @@
-

Page not found :(

-

The page you are looking for doesn't exist or has been moved.

+

{{ i18n "404-title" }}

+

{{ i18n "404-text" }}

diff --git a/layouts/index.html b/layouts/index.html index 57c2e84..8daf8c0 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -6,7 +6,7 @@

{{ .Params.lead | safeHTML }}

- Get Started + {{ i18n "get-started" }}

Open-source MIT Licensed. GitHub v{{ $data := getJSON "/package.json" }}{{ $data.version }}

diff --git a/layouts/partials/header/header.html b/layouts/partials/header/header.html index 93584f4..96e6fa5 100644 --- a/layouts/partials/header/header.html +++ b/layouts/partials/header/header.html @@ -22,7 +22,7 @@
-
Browse {{ .Section }}
+
{{ i18n "browse" }} {{ .Section }}
@@ -87,7 +87,7 @@ {{ if $showFlexSearch -}}
{{ end -}} diff --git a/layouts/partials/sidebar/docs-toc.html b/layouts/partials/sidebar/docs-toc.html index 60572b7..c71a7b8 100644 --- a/layouts/partials/sidebar/docs-toc.html +++ b/layouts/partials/sidebar/docs-toc.html @@ -1,7 +1,7 @@ {{ if and (ne .Params.toc false) (ne .TableOfContents "") -}}