From 51a5ccc91b5734669c11c52b4368cbc73a627286 Mon Sep 17 00:00:00 2001 From: Robert Date: Tue, 15 Nov 2022 19:59:49 +0100 Subject: [PATCH 1/2] =?UTF-8?q?Add=20nl=20translation=20for=20Dutch=20/=20?= =?UTF-8?q?Nederlands=20=F0=9F=87=B3=F0=9F=87=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- i18n/nl.yaml | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 i18n/nl.yaml diff --git a/i18n/nl.yaml b/i18n/nl.yaml new file mode 100644 index 00000000..d73695b7 --- /dev/null +++ b/i18n/nl.yaml @@ -0,0 +1,55 @@ +article: + anchor_label: "Anker" + date: "{{ .Date }}" + date_updated: "Bijgwerkt: {{ .Date }}" + draft: "Concept" + edit_title: "Bewerk inhoud" + reading_time: + one: "{{ .Count }} minuut" + other: "{{ .Count }} minuten" + reading_time_title: "Leestijd" + table_of_contents: "Inhoudsopgave" + word_count: + one: "{{ .Count }} woord" + other: "{{ .Count }} woorden" + +author: + byline_title: "Auteur" + +code: + copy: "Kopieer" + copied: "Gekopieerd" + +error: + 404_title: "Pagina niet gevonden :confused:" + 404_error: "Fout 404" + 404_description: "Het lijkt er op dat de opgevraagde pagina niet bestaat." + +footer: + dark_appearance: "Omschakelen naar donker uiterlijk" + light_appearance: "Omschakelen naar licht uiterlijk" + powered_by: "Aangedreven door {{ .Hugo }} & {{ .Congo }}" + +list: + externalurl_title: "Link naar externe site" + no_articles: "Er zijn nog geen artikelen om hier weer te geven." + +nav: + scroll_to_top_title: "Scroll naar toven" + skip_to_main: "Spring naar inhoud" + +search: + open_button_title: "Zoeken (/)" + close_button_title: "Sluiten (Esc)" + input_placeholder: "Zoeken" + +sharing: + email: "Verstuur via email" + facebook: "Deel op Facebook" + linkedin: "Deel op LinkedIn" + pinterest: "Pin op Pinterest" + reddit: "Verzend naar Reddit" + twitter: "Tweet op Twitter" + +shortcode: + recent_articles: "Recent" \ No newline at end of file From 34ed75595036c93f925bb53ef7878ff13b16233e Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Wed, 16 Nov 2022 09:29:13 +1100 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=93=9D=20Update=20language=20docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- exampleSite/content/docs/configuration.md | 39 ++++++++++++----------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/exampleSite/content/docs/configuration.md b/exampleSite/content/docs/configuration.md index 0d52cb91..a80b0f27 100644 --- a/exampleSite/content/docs/configuration.md +++ b/exampleSite/content/docs/configuration.md @@ -45,26 +45,27 @@ Note that the variable names provided in this table use dot notation to simplify Congo is optimised for full multilingual websites and theme assets are translated into several languages out of the box. The language configuration allows you to generate multiple versions of your content to provide a customised experience to your visitors in their native language. -The theme currently supports the following languages by default: +The theme currently supports the following languages out of the box: -| Language | Code | -| ------------------------------------- | ------- | -| :gb: English | `en` | -| :bangladesh: Bengali | `bn` | -| :cn: Simplified Chinese (China) | `zh-cn` | -| :taiwan: Traditional Chinese (Taiwan) | `zh-tw` | -| :finland: Finnish | `fi` | -| :fr: French | `fr` | -| :de: German | `de` | -| :israel: Hebrew | `he` | -| :hungary: Hungarian | `hu` | -| :it: Italian | `it` | -| :jp: Japanese | `ja` | -| :brazil: Portuguese (Brazil) | `pt-br` | -| :portugal: Portuguese (Portugal) | `pt-pt` | -| :romania: Romanian | `ro` | -| :es: Spanish (Spain) | `es` | -| :tr: Turkish | `tr` | +| Language | Code | +| --------------------------------------- | ------- | +| :gb: **English (default)** | `en` | +| :bangladesh: Bengali | `bn` | +| :cn: Chinese - Simplified (China) | `zh-cn` | +| :taiwan: Chinese - Traditional (Taiwan) | `zh-tw` | +| :netherlands: Dutch | `nl` | +| :finland: Finnish | `fi` | +| :fr: French | `fr` | +| :de: German | `de` | +| :israel: Hebrew | `he` | +| :hungary: Hungarian | `hu` | +| :it: Italian | `it` | +| :jp: Japanese | `ja` | +| :brazil: Portuguese (Brazil) | `pt-br` | +| :portugal: Portuguese (Portugal) | `pt-pt` | +| :romania: Romanian | `ro` | +| :es: Spanish (Spain) | `es` | +| :tr: Turkish | `tr` | The default translations can be overridden by creating a custom file in `i18n/[code].yaml` that contains the translation strings. You can also use this method to add new languages. If you'd like to share a new translation with the community, please [open a pull request](https://github.com/jpanther/congo/pulls).