X Tutup
Skip to content

feat(locale): Added Norwegian (Bokmål and Nynorsk) locale#652

Merged
sinaatalay merged 2 commits intorendercv:mainfrom
andersgaustad:feat/norwegian-locale
Feb 16, 2026
Merged

feat(locale): Added Norwegian (Bokmål and Nynorsk) locale#652
sinaatalay merged 2 commits intorendercv:mainfrom
andersgaustad:feat/norwegian-locale

Conversation

@andersgaustad
Copy link
Contributor

Added the two official writing standards for Norwegian: Norwegian Bokmål and Norwegian Nynorsk.

Updated english_locale-py with the ISO 639-1 codes of 'nb' (for Bokmål) and 'nn' (for Nynorsk).

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds support for two official Norwegian writing standards: Norwegian Bokmål and Norwegian Nynorsk. The implementation follows the established pattern for adding new locales to RenderCV by creating YAML configuration files that are auto-discovered and dynamically converted to Pydantic models.

Changes:

  • Added Norwegian Nynorsk locale with appropriate translations for month names, date formatting, and time-related text
  • Added Norwegian Bokmål locale with appropriate translations (file exists but not shown in diff)
  • Updated ISO 639-1 language code mappings to include 'nb' for Bokmål and 'nn' for Nynorsk
  • Regenerated schema.json to include the new locale definitions

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/rendercv/schema/models/locale/other_locales/norwegian_nynorsk.yaml Defines Norwegian Nynorsk locale with translations for UI text and month names
src/rendercv/schema/models/locale/english_locale.py Adds ISO 639-1 codes 'nb' and 'nn' to the language_iso_639_1 mapping dictionary
schema.json Auto-generated schema file updated with Norwegian locale definitions and discriminated union mappings

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sinaatalay
Copy link
Member

sinaatalay commented Feb 16, 2026

Thank you!

I pushed a small fixup commit with the following corrections: the Nynorsk present translation was misspelled as "noverande." The standard Nynorsk form is "nåverande" (with å), according to Claude. Both YAML files were also missing a trailing newline. Finally, schema.json should be generated via scripts/update_schema.py rather than being manually edited, which is how this project keeps the schema in sync with the code.

Added the two official writing standards for Norwegian:
Norwegian Bokmål and Norwegian Nynorsk.

Updated `english_locale-py` with the ISO 639-1 codes of 'nb' and 'nn'.
@sinaatalay sinaatalay force-pushed the feat/norwegian-locale branch from 77c6b0e to c9f4e2d Compare February 16, 2026 12:05
- Fix Nynorsk "present" translation: "noverande" → "nåverande"
- Regenerate schema.json via update_schema.py instead of manual edits
- Add missing trailing newlines to both YAML files

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sinaatalay sinaatalay force-pushed the feat/norwegian-locale branch from c9f4e2d to baa28be Compare February 16, 2026 12:06
@sinaatalay sinaatalay merged commit 710d4a1 into rendercv:main Feb 16, 2026
10 checks passed
@andersgaustad
Copy link
Contributor Author

Nice 👍

Finally, schema.json should be generated via scripts/update_schema.py rather than being manually edited

Ah, that makes sense. I think I just used another PR as an example, and saw that schema.json was changed there.

Thanks for the fixes!

yafei-ou pushed a commit to yafei-ou/rendercv that referenced this pull request Feb 27, 2026
* feat(locale): Added Norwegian (Bokmål and Nynorsk) locale

Added the two official writing standards for Norwegian:
Norwegian Bokmål and Norwegian Nynorsk.

Updated `english_locale-py` with the ISO 639-1 codes of 'nb' and 'nn'.

* Fix Nynorsk typo, regenerate schema, and add trailing newlines

- Fix Nynorsk "present" translation: "noverande" → "nåverande"
- Regenerate schema.json via update_schema.py instead of manual edits
- Add missing trailing newlines to both YAML files

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Sina Atalay <79940989+sinaatalay@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

X Tutup