diff --git a/schema.json b/schema.json index e65d48cb..9c07ebf6 100644 --- a/schema.json +++ b/schema.json @@ -327,6 +327,100 @@ "title": "Cv", "type": "object" }, + "DanishLocale": { + "additionalProperties": false, + "properties": { + "language": { + "const": "danish", + "default": "danish", + "description": "The language for your CV. The default value is `danish`.", + "title": "Language", + "type": "string" + }, + "last_updated": { + "default": "Senest opdateret", + "description": "Translation of \"Last updated in\". The default value is `Senest opdateret`.", + "title": "Last Updated", + "type": "string" + }, + "month": { + "default": "måned", + "description": "Translation of \"month\" (singular). The default value is `måned`.", + "title": "Month", + "type": "string" + }, + "months": { + "default": "måneder", + "description": "Translation of \"months\" (plural). The default value is `måneder`.", + "title": "Months", + "type": "string" + }, + "year": { + "default": "år", + "description": "Translation of \"year\" (singular). The default value is `år`.", + "title": "Year", + "type": "string" + }, + "years": { + "default": "år", + "description": "Translation of \"years\" (plural). The default value is `år`.", + "title": "Years", + "type": "string" + }, + "present": { + "default": "nuværende", + "description": "Translation of \"present\" for ongoing dates. The default value is `nuværende`.", + "title": "Present", + "type": "string" + }, + "month_abbreviations": { + "default": [ + "Jan", + "Feb", + "Mar", + "Apr", + "Maj", + "Jun", + "Jul", + "Aug", + "Sep", + "Okt", + "Nov", + "Dec" + ], + "description": "Month abbreviations (Jan-Dec).", + "items": { + "type": "string" + }, + "title": "Month Abbreviations", + "type": "array" + }, + "month_names": { + "default": [ + "Januar", + "Februar", + "Marts", + "April", + "Maj", + "Juni", + "Juli", + "August", + "September", + "Oktober", + "November", + "December" + ], + "description": "Full month names (January-December).", + "items": { + "type": "string" + }, + "title": "Month Names", + "type": "array" + } + }, + "title": "DanishLocale", + "type": "object" + }, "EngineeringclassicTheme": { "additionalProperties": false, "properties": { @@ -801,13 +895,13 @@ "title": "HindiLocale", "type": "object" }, - "IndonesiaLocale": { + "IndonesianLocale": { "additionalProperties": false, "properties": { "language": { - "const": "indonesia", - "default": "indonesia", - "description": "The language for your CV. The default value is `indonesia`.", + "const": "indonesian", + "default": "indonesian", + "description": "The language for your CV. The default value is `indonesian`.", "title": "Language", "type": "string" }, @@ -892,7 +986,7 @@ "type": "array" } }, - "title": "IndonesiaLocale", + "title": "IndonesianLocale", "type": "object" }, "ItalianLocale": { @@ -1238,11 +1332,12 @@ "Locale": { "discriminator": { "mapping": { + "danish": "#/$defs/DanishLocale", "english": "#/$defs/EnglishLocale", "french": "#/$defs/FrenchLocale", "german": "#/$defs/GermanLocale", "hindi": "#/$defs/HindiLocale", - "indonesia": "#/$defs/IndonesiaLocale", + "indonesian": "#/$defs/IndonesianLocale", "italian": "#/$defs/ItalianLocale", "japanese": "#/$defs/JapaneseLocale", "korean": "#/$defs/KoreanLocale", @@ -1258,6 +1353,9 @@ { "$ref": "#/$defs/EnglishLocale" }, + { + "$ref": "#/$defs/DanishLocale" + }, { "$ref": "#/$defs/FrenchLocale" }, @@ -1268,7 +1366,7 @@ "$ref": "#/$defs/HindiLocale" }, { - "$ref": "#/$defs/IndonesiaLocale" + "$ref": "#/$defs/IndonesianLocale" }, { "$ref": "#/$defs/ItalianLocale" diff --git a/src/rendercv/schema/models/locale/english_locale.py b/src/rendercv/schema/models/locale/english_locale.py index e0a5a1cf..a846c6d9 100644 --- a/src/rendercv/schema/models/locale/english_locale.py +++ b/src/rendercv/schema/models/locale/english_locale.py @@ -95,17 +95,19 @@ class EnglishLocale(BaseModelWithoutExtraKeys): Two-letter ISO 639-1 language code for Typst and HTML. """ return { + "danish": "da", "english": "en", - "mandarin_chineese": "zh", - "hindi": "hi", - "spanish": "es", "french": "fr", - "portuguese": "pt", "german": "de", - "turkish": "tr", + "hindi": "hi", "italian": "it", - "russian": "ru", + "indonesian": "id", "japanese": "ja", "korean": "ko", "indonesia": "id", + "mandarin_chineese": "zh", + "portuguese": "pt", + "russian": "ru", + "spanish": "es", + "turkish": "tr", }[self.language] diff --git a/src/rendercv/schema/models/locale/other_locales/danish.yaml b/src/rendercv/schema/models/locale/other_locales/danish.yaml new file mode 100644 index 00000000..e74d3494 --- /dev/null +++ b/src/rendercv/schema/models/locale/other_locales/danish.yaml @@ -0,0 +1,35 @@ +# yaml-language-server: $schema=../../../../../../schema.json +locale: + language: danish + last_updated: "Senest opdateret" + month: "måned" + months: "måneder" + year: "år" + years: "år" + present: "nuværende" + month_abbreviations: + - "Jan" + - "Feb" + - "Mar" + - "Apr" + - "Maj" + - "Jun" + - "Jul" + - "Aug" + - "Sep" + - "Okt" + - "Nov" + - "Dec" + month_names: + - "Januar" + - "Februar" + - "Marts" + - "April" + - "Maj" + - "Juni" + - "Juli" + - "August" + - "September" + - "Oktober" + - "November" + - "December" diff --git a/src/rendercv/schema/models/locale/other_locales/indonesia.yaml b/src/rendercv/schema/models/locale/other_locales/indonesian.yaml similarity index 95% rename from src/rendercv/schema/models/locale/other_locales/indonesia.yaml rename to src/rendercv/schema/models/locale/other_locales/indonesian.yaml index 9d1cd639..a765558c 100644 --- a/src/rendercv/schema/models/locale/other_locales/indonesia.yaml +++ b/src/rendercv/schema/models/locale/other_locales/indonesian.yaml @@ -1,6 +1,6 @@ # yaml-language-server: $schema=../../../../../../schema.json locale: - language: indonesia + language: indonesian last_updated: Terakhir diperbarui month: bulan months: bulan @@ -33,4 +33,3 @@ locale: - Oktober - November - Desember -