diff --git a/examples/John_Doe_ClassicTheme_CV.pdf b/examples/John_Doe_ClassicTheme_CV.pdf
index 629d2b6a..87631319 100644
--- a/examples/John_Doe_ClassicTheme_CV.pdf
+++ b/examples/John_Doe_ClassicTheme_CV.pdf
@@ -4910,8 +4910,8 @@ endobj
/Title (John Doe's CV)
/Author (John Doe)
/Creator (Typst 0.14.1)
- /ModDate (D:20251209000000Z)
- /CreationDate (D:20251209000000Z)
+ /ModDate (D:20251210000000Z)
+ /CreationDate (D:20251210000000Z)
>>
endobj
@@ -4922,7 +4922,7 @@ endobj
/Subtype /XML
>>
stream
-John Doe's CVJohn DoeTypst 0.14.1en2025-12-09T00:00:00Z2025-12-09T00:00:00Z3application/pdfu2eU42lEqnWOKdwH5zicxQ==8GxnnV7hIG6JEqv2jM0Nlg==proof1.7
+John Doe's CVJohn DoeTypst 0.14.1en2025-12-10T00:00:00Z2025-12-10T00:00:00Z3application/pdfXUk3WnJLnMlDzk2TDEeIHA==8GxnnV7hIG6JEqv2jM0Nlg==proof1.7
endstream
endobj
@@ -5372,7 +5372,7 @@ trailer
/Size 421
/Root 420 0 R
/Info 418 0 R
- /ID [(8GxnnV7hIG6JEqv2jM0Nlg==) (u2eU42lEqnWOKdwH5zicxQ==)]
+ /ID [(8GxnnV7hIG6JEqv2jM0Nlg==) (XUk3WnJLnMlDzk2TDEeIHA==)]
>>
startxref
90942
diff --git a/examples/John_Doe_ClassicTheme_CV.yaml b/examples/John_Doe_ClassicTheme_CV.yaml
index 5bada0f6..bfe2e2a2 100644
--- a/examples/John_Doe_ClassicTheme_CV.yaml
+++ b/examples/John_Doe_ClassicTheme_CV.yaml
@@ -318,40 +318,40 @@ design:
# date_and_location_column: DATE
locale:
language: english
- last_updated: Last updated in
- month: month
- months: months
- year: year
- years: years
- present: present
- month_abbreviations:
- - Jan
- - Feb
- - Mar
- - Apr
- - May
- - June
- - July
- - Aug
- - Sept
- - Oct
- - Nov
- - Dec
- month_names:
- - January
- - February
- - March
- - April
- - May
- - June
- - July
- - August
- - September
- - October
- - November
- - December
+ # last_updated: Last updated in
+ # month: month
+ # months: months
+ # year: year
+ # years: years
+ # present: present
+ # month_abbreviations:
+ # - Jan
+ # - Feb
+ # - Mar
+ # - Apr
+ # - May
+ # - June
+ # - July
+ # - Aug
+ # - Sept
+ # - Oct
+ # - Nov
+ # - Dec
+ # month_names:
+ # - January
+ # - February
+ # - March
+ # - April
+ # - May
+ # - June
+ # - July
+ # - August
+ # - September
+ # - October
+ # - November
+ # - December
settings:
- current_date: '2025-12-09'
+ current_date: '2025-12-10'
render_command:
design:
locale:
diff --git a/examples/John_Doe_EngineeringclassicTheme_CV.pdf b/examples/John_Doe_EngineeringclassicTheme_CV.pdf
index de6b239b..4ed68c33 100644
--- a/examples/John_Doe_EngineeringclassicTheme_CV.pdf
+++ b/examples/John_Doe_EngineeringclassicTheme_CV.pdf
@@ -4831,8 +4831,8 @@ endobj
/Title (John Doe's CV)
/Author (John Doe)
/Creator (Typst 0.14.1)
- /ModDate (D:20251209000000Z)
- /CreationDate (D:20251209000000Z)
+ /ModDate (D:20251210000000Z)
+ /CreationDate (D:20251210000000Z)
>>
endobj
@@ -4843,7 +4843,7 @@ endobj
/Subtype /XML
>>
stream
-John Doe's CVJohn DoeTypst 0.14.1en2025-12-09T00:00:00Z2025-12-09T00:00:00Z3application/pdfdfeqlSflh478Z4nHvfpU4g==8GxnnV7hIG6JEqv2jM0Nlg==proof1.7
+John Doe's CVJohn DoeTypst 0.14.1en2025-12-10T00:00:00Z2025-12-10T00:00:00Z3application/pdfk2irK83YnFTcRt59+okDew==8GxnnV7hIG6JEqv2jM0Nlg==proof1.7
endstream
endobj
@@ -5283,7 +5283,7 @@ trailer
/Size 411
/Root 410 0 R
/Info 408 0 R
- /ID [(8GxnnV7hIG6JEqv2jM0Nlg==) (dfeqlSflh478Z4nHvfpU4g==)]
+ /ID [(8GxnnV7hIG6JEqv2jM0Nlg==) (k2irK83YnFTcRt59+okDew==)]
>>
startxref
99212
diff --git a/examples/John_Doe_EngineeringclassicTheme_CV.yaml b/examples/John_Doe_EngineeringclassicTheme_CV.yaml
index 95af15a5..359c79a1 100644
--- a/examples/John_Doe_EngineeringclassicTheme_CV.yaml
+++ b/examples/John_Doe_EngineeringclassicTheme_CV.yaml
@@ -311,40 +311,40 @@ design:
# date_and_location_column: DATE
locale:
language: english
- last_updated: Last updated in
- month: month
- months: months
- year: year
- years: years
- present: present
- month_abbreviations:
- - Jan
- - Feb
- - Mar
- - Apr
- - May
- - June
- - July
- - Aug
- - Sept
- - Oct
- - Nov
- - Dec
- month_names:
- - January
- - February
- - March
- - April
- - May
- - June
- - July
- - August
- - September
- - October
- - November
- - December
+ # last_updated: Last updated in
+ # month: month
+ # months: months
+ # year: year
+ # years: years
+ # present: present
+ # month_abbreviations:
+ # - Jan
+ # - Feb
+ # - Mar
+ # - Apr
+ # - May
+ # - June
+ # - July
+ # - Aug
+ # - Sept
+ # - Oct
+ # - Nov
+ # - Dec
+ # month_names:
+ # - January
+ # - February
+ # - March
+ # - April
+ # - May
+ # - June
+ # - July
+ # - August
+ # - September
+ # - October
+ # - November
+ # - December
settings:
- current_date: '2025-12-09'
+ current_date: '2025-12-10'
render_command:
design:
locale:
diff --git a/examples/John_Doe_EngineeringresumesTheme_CV.pdf b/examples/John_Doe_EngineeringresumesTheme_CV.pdf
index 05035f6e..526186da 100644
--- a/examples/John_Doe_EngineeringresumesTheme_CV.pdf
+++ b/examples/John_Doe_EngineeringresumesTheme_CV.pdf
@@ -4397,8 +4397,8 @@ endobj
/Title (John Doe's CV)
/Author (John Doe)
/Creator (Typst 0.14.1)
- /ModDate (D:20251209000000Z)
- /CreationDate (D:20251209000000Z)
+ /ModDate (D:20251210000000Z)
+ /CreationDate (D:20251210000000Z)
>>
endobj
@@ -4409,7 +4409,7 @@ endobj
/Subtype /XML
>>
stream
-John Doe's CVJohn DoeTypst 0.14.1en2025-12-09T00:00:00Z2025-12-09T00:00:00Z3application/pdfanObyUiA4oCNxNZTxYszgw==8GxnnV7hIG6JEqv2jM0Nlg==proof1.7
+John Doe's CVJohn DoeTypst 0.14.1en2025-12-10T00:00:00Z2025-12-10T00:00:00Z3application/pdfu3Iw1gj4sDEsvuPqZKAmWQ==8GxnnV7hIG6JEqv2jM0Nlg==proof1.7
endstream
endobj
@@ -4831,7 +4831,7 @@ trailer
/Size 393
/Root 392 0 R
/Info 390 0 R
- /ID [(8GxnnV7hIG6JEqv2jM0Nlg==) (anObyUiA4oCNxNZTxYszgw==)]
+ /ID [(8GxnnV7hIG6JEqv2jM0Nlg==) (u3Iw1gj4sDEsvuPqZKAmWQ==)]
>>
startxref
80658
diff --git a/examples/John_Doe_EngineeringresumesTheme_CV.yaml b/examples/John_Doe_EngineeringresumesTheme_CV.yaml
index 7459049b..42d86ef8 100644
--- a/examples/John_Doe_EngineeringresumesTheme_CV.yaml
+++ b/examples/John_Doe_EngineeringresumesTheme_CV.yaml
@@ -311,40 +311,40 @@ design:
# date_and_location_column: DATE
locale:
language: english
- last_updated: Last updated in
- month: month
- months: months
- year: year
- years: years
- present: present
- month_abbreviations:
- - Jan
- - Feb
- - Mar
- - Apr
- - May
- - June
- - July
- - Aug
- - Sept
- - Oct
- - Nov
- - Dec
- month_names:
- - January
- - February
- - March
- - April
- - May
- - June
- - July
- - August
- - September
- - October
- - November
- - December
+ # last_updated: Last updated in
+ # month: month
+ # months: months
+ # year: year
+ # years: years
+ # present: present
+ # month_abbreviations:
+ # - Jan
+ # - Feb
+ # - Mar
+ # - Apr
+ # - May
+ # - June
+ # - July
+ # - Aug
+ # - Sept
+ # - Oct
+ # - Nov
+ # - Dec
+ # month_names:
+ # - January
+ # - February
+ # - March
+ # - April
+ # - May
+ # - June
+ # - July
+ # - August
+ # - September
+ # - October
+ # - November
+ # - December
settings:
- current_date: '2025-12-09'
+ current_date: '2025-12-10'
render_command:
design:
locale:
diff --git a/examples/John_Doe_ModerncvTheme_CV.pdf b/examples/John_Doe_ModerncvTheme_CV.pdf
index cd621632..38d2ebc7 100644
--- a/examples/John_Doe_ModerncvTheme_CV.pdf
+++ b/examples/John_Doe_ModerncvTheme_CV.pdf
@@ -5325,8 +5325,8 @@ endobj
/Title (John Doe's CV)
/Author (John Doe)
/Creator (Typst 0.14.1)
- /ModDate (D:20251209000000Z)
- /CreationDate (D:20251209000000Z)
+ /ModDate (D:20251210000000Z)
+ /CreationDate (D:20251210000000Z)
>>
endobj
@@ -5337,7 +5337,7 @@ endobj
/Subtype /XML
>>
stream
-John Doe's CVJohn DoeTypst 0.14.1en2025-12-09T00:00:00Z2025-12-09T00:00:00Z3application/pdfmeQIfA1ViapL7yRT+t6BBw==8GxnnV7hIG6JEqv2jM0Nlg==proof1.7
+John Doe's CVJohn DoeTypst 0.14.1en2025-12-10T00:00:00Z2025-12-10T00:00:00Z3application/pdf4AxbqrTuYeDCGpY8kkORxQ==8GxnnV7hIG6JEqv2jM0Nlg==proof1.7
endstream
endobj
@@ -5821,7 +5821,7 @@ trailer
/Size 455
/Root 454 0 R
/Info 452 0 R
- /ID [(8GxnnV7hIG6JEqv2jM0Nlg==) (meQIfA1ViapL7yRT+t6BBw==)]
+ /ID [(8GxnnV7hIG6JEqv2jM0Nlg==) (4AxbqrTuYeDCGpY8kkORxQ==)]
>>
startxref
94690
diff --git a/examples/John_Doe_ModerncvTheme_CV.yaml b/examples/John_Doe_ModerncvTheme_CV.yaml
index a5b8c088..555c949e 100644
--- a/examples/John_Doe_ModerncvTheme_CV.yaml
+++ b/examples/John_Doe_ModerncvTheme_CV.yaml
@@ -311,40 +311,40 @@ design:
# date_and_location_column: DATE
locale:
language: english
- last_updated: Last updated in
- month: month
- months: months
- year: year
- years: years
- present: present
- month_abbreviations:
- - Jan
- - Feb
- - Mar
- - Apr
- - May
- - June
- - July
- - Aug
- - Sept
- - Oct
- - Nov
- - Dec
- month_names:
- - January
- - February
- - March
- - April
- - May
- - June
- - July
- - August
- - September
- - October
- - November
- - December
+ # last_updated: Last updated in
+ # month: month
+ # months: months
+ # year: year
+ # years: years
+ # present: present
+ # month_abbreviations:
+ # - Jan
+ # - Feb
+ # - Mar
+ # - Apr
+ # - May
+ # - June
+ # - July
+ # - Aug
+ # - Sept
+ # - Oct
+ # - Nov
+ # - Dec
+ # month_names:
+ # - January
+ # - February
+ # - March
+ # - April
+ # - May
+ # - June
+ # - July
+ # - August
+ # - September
+ # - October
+ # - November
+ # - December
settings:
- current_date: '2025-12-09'
+ current_date: '2025-12-10'
render_command:
design:
locale:
diff --git a/examples/John_Doe_Sb2novTheme_CV.pdf b/examples/John_Doe_Sb2novTheme_CV.pdf
index b632a8aa..15cdfb50 100644
--- a/examples/John_Doe_Sb2novTheme_CV.pdf
+++ b/examples/John_Doe_Sb2novTheme_CV.pdf
@@ -4848,8 +4848,8 @@ endobj
/Title (John Doe's CV)
/Author (John Doe)
/Creator (Typst 0.14.1)
- /ModDate (D:20251209000000Z)
- /CreationDate (D:20251209000000Z)
+ /ModDate (D:20251210000000Z)
+ /CreationDate (D:20251210000000Z)
>>
endobj
@@ -4860,7 +4860,7 @@ endobj
/Subtype /XML
>>
stream
-John Doe's CVJohn DoeTypst 0.14.1en2025-12-09T00:00:00Z2025-12-09T00:00:00Z3application/pdfyQscKuxePfQpa2CdauP3Kw==8GxnnV7hIG6JEqv2jM0Nlg==proof1.7
+John Doe's CVJohn DoeTypst 0.14.1en2025-12-10T00:00:00Z2025-12-10T00:00:00Z3application/pdfuduu7lk00Db6rU1tHenmfw==8GxnnV7hIG6JEqv2jM0Nlg==proof1.7
endstream
endobj
@@ -5323,7 +5323,7 @@ trailer
/Size 434
/Root 433 0 R
/Info 431 0 R
- /ID [(8GxnnV7hIG6JEqv2jM0Nlg==) (yQscKuxePfQpa2CdauP3Kw==)]
+ /ID [(8GxnnV7hIG6JEqv2jM0Nlg==) (uduu7lk00Db6rU1tHenmfw==)]
>>
startxref
92165
diff --git a/examples/John_Doe_Sb2novTheme_CV.yaml b/examples/John_Doe_Sb2novTheme_CV.yaml
index b22e9311..d6f7fc26 100644
--- a/examples/John_Doe_Sb2novTheme_CV.yaml
+++ b/examples/John_Doe_Sb2novTheme_CV.yaml
@@ -319,40 +319,40 @@ design:
# date_and_location_column: DATE
locale:
language: english
- last_updated: Last updated in
- month: month
- months: months
- year: year
- years: years
- present: present
- month_abbreviations:
- - Jan
- - Feb
- - Mar
- - Apr
- - May
- - June
- - July
- - Aug
- - Sept
- - Oct
- - Nov
- - Dec
- month_names:
- - January
- - February
- - March
- - April
- - May
- - June
- - July
- - August
- - September
- - October
- - November
- - December
+ # last_updated: Last updated in
+ # month: month
+ # months: months
+ # year: year
+ # years: years
+ # present: present
+ # month_abbreviations:
+ # - Jan
+ # - Feb
+ # - Mar
+ # - Apr
+ # - May
+ # - June
+ # - July
+ # - Aug
+ # - Sept
+ # - Oct
+ # - Nov
+ # - Dec
+ # month_names:
+ # - January
+ # - February
+ # - March
+ # - April
+ # - May
+ # - June
+ # - July
+ # - August
+ # - September
+ # - October
+ # - November
+ # - December
settings:
- current_date: '2025-12-09'
+ current_date: '2025-12-10'
render_command:
design:
locale:
diff --git a/src/rendercv/schema/sample_generator.py b/src/rendercv/schema/sample_generator.py
index a6ecf398..9475eb45 100644
--- a/src/rendercv/schema/sample_generator.py
+++ b/src/rendercv/schema/sample_generator.py
@@ -188,8 +188,19 @@ def create_sample_yaml_input_file(
]
yaml_design_field = yaml_design_theme_part + "\n".join(below_design) + "\n"
- yaml_locale_and_settings_fields = yaml_locale_part + split_yaml_string[1]
- yaml_string = yaml_cv_field + yaml_design_field + yaml_locale_and_settings_fields
+ # Handle locale field commenting (similar to design)
+ locale_and_settings = split_yaml_string[1]
+ settings_part = "settings:\n"
+ split_by_settings = locale_and_settings.split(settings_part)
+ below_locale = split_by_settings[0]
+ below_locale_commented = [
+ f" {line.replace(' ', '# ', 1)}"
+ for line in below_locale.splitlines(keepends=False)
+ ]
+ yaml_locale_field = yaml_locale_part + "\n".join(below_locale_commented) + "\n"
+ yaml_settings_field = settings_part + split_by_settings[1]
+
+ yaml_string = yaml_cv_field + yaml_design_field + yaml_locale_field + yaml_settings_field
if file_path is not None:
file_path.write_text(yaml_string, encoding="utf-8")