From c9cefc167af888535344ba95aa1ef485dd9fc8d0 Mon Sep 17 00:00:00 2001 From: Mattia <46904691+MattiaPun@users.noreply.github.com> Date: Thu, 25 Dec 2025 12:33:00 +0100 Subject: [PATCH] feat(locale): add Dutch (NL) locale (#585) * feat(locale): add Dutch (NL) locale * Fix locale Dutch requested by maintainer --- schema.json | 100 +++++++++++++++++- .../schema/models/locale/english_locale.py | 1 + .../models/locale/other_locales/dutch.yaml | 35 ++++++ 3 files changed, 135 insertions(+), 1 deletion(-) create mode 100644 src/rendercv/schema/models/locale/other_locales/dutch.yaml diff --git a/schema.json b/schema.json index 9c07ebf6..2e8dc645 100644 --- a/schema.json +++ b/schema.json @@ -421,6 +421,100 @@ "title": "DanishLocale", "type": "object" }, + "DutchLocale": { + "additionalProperties": false, + "properties": { + "language": { + "const": "dutch", + "default": "dutch", + "description": "The language for your CV. The default value is `dutch`.", + "title": "Language", + "type": "string" + }, + "last_updated": { + "default": "Laatst bijgewerkt", + "description": "Translation of \"Last updated in\". The default value is `Laatst bijgewerkt`.", + "title": "Last Updated", + "type": "string" + }, + "month": { + "default": "maand", + "description": "Translation of \"month\" (singular). The default value is `maand`.", + "title": "Month", + "type": "string" + }, + "months": { + "default": "maanden", + "description": "Translation of \"months\" (plural). The default value is `maanden`.", + "title": "Months", + "type": "string" + }, + "year": { + "default": "jaar", + "description": "Translation of \"year\" (singular). The default value is `jaar`.", + "title": "Year", + "type": "string" + }, + "years": { + "default": "jaren", + "description": "Translation of \"years\" (plural). The default value is `jaren`.", + "title": "Years", + "type": "string" + }, + "present": { + "default": "heden", + "description": "Translation of \"present\" for ongoing dates. The default value is `heden`.", + "title": "Present", + "type": "string" + }, + "month_abbreviations": { + "default": [ + "Jan", + "Feb", + "Mrt", + "Apr", + "Mei", + "Jun", + "Jul", + "Aug", + "Sep", + "Okt", + "Nov", + "Dec" + ], + "description": "Month abbreviations (Jan-Dec).", + "items": { + "type": "string" + }, + "title": "Month Abbreviations", + "type": "array" + }, + "month_names": { + "default": [ + "Januari", + "Februari", + "Maart", + "April", + "Mei", + "Juni", + "Juli", + "Augustus", + "September", + "Oktober", + "November", + "December" + ], + "description": "Full month names (January-December).", + "items": { + "type": "string" + }, + "title": "Month Names", + "type": "array" + } + }, + "title": "DutchLocale", + "type": "object" + }, "EngineeringclassicTheme": { "additionalProperties": false, "properties": { @@ -1333,6 +1427,7 @@ "discriminator": { "mapping": { "danish": "#/$defs/DanishLocale", + "dutch": "#/$defs/DutchLocale", "english": "#/$defs/EnglishLocale", "french": "#/$defs/FrenchLocale", "german": "#/$defs/GermanLocale", @@ -1356,6 +1451,9 @@ { "$ref": "#/$defs/DanishLocale" }, + { + "$ref": "#/$defs/DutchLocale" + }, { "$ref": "#/$defs/FrenchLocale" }, @@ -5672,7 +5770,7 @@ "required": [], "title": "RenderCV", "type": "object", - "description": "Write your CV or resume as YAML and get PDF. Built for academics and engineers.", + "description": "Typst-based CV/resume generator for academics and engineers.", "$id": "https://raw.githubusercontent.com/rendercv/rendercv/main/schema.json", "$schema": "http://json-schema.org/draft-07/schema#" } \ No newline at end of file diff --git a/src/rendercv/schema/models/locale/english_locale.py b/src/rendercv/schema/models/locale/english_locale.py index a846c6d9..09bb054c 100644 --- a/src/rendercv/schema/models/locale/english_locale.py +++ b/src/rendercv/schema/models/locale/english_locale.py @@ -96,6 +96,7 @@ class EnglishLocale(BaseModelWithoutExtraKeys): """ return { "danish": "da", + "dutch": "nl", "english": "en", "french": "fr", "german": "de", diff --git a/src/rendercv/schema/models/locale/other_locales/dutch.yaml b/src/rendercv/schema/models/locale/other_locales/dutch.yaml new file mode 100644 index 00000000..e790c8f3 --- /dev/null +++ b/src/rendercv/schema/models/locale/other_locales/dutch.yaml @@ -0,0 +1,35 @@ +# yaml-language-server: $schema=../../../../../../schema.json +locale: + language: dutch + last_updated: "Laatst bijgewerkt" + month: "maand" + months: "maanden" + year: "jaar" + years: "jaren" + present: "heden" + month_abbreviations: + - Jan + - Feb + - Mrt + - Apr + - Mei + - Jun + - Jul + - Aug + - Sep + - Okt + - Nov + - Dec + month_names: + - Januari + - Februari + - Maart + - April + - Mei + - Juni + - Juli + - Augustus + - September + - Oktober + - November + - December \ No newline at end of file