Skip to content

feat: add language selection and @duration builtin - #13

Merged
scme0 merged 1 commit into
mainfrom
feat/lang-and-duration
Jun 30, 2026
Merged

feat: add language selection and @duration builtin#13
scme0 merged 1 commit into
mainfrom
feat/lang-and-duration

Conversation

@scme0

@scme0 scme0 commented Jun 30, 2026

Copy link
Copy Markdown
Owner

What

  • -l/--lang flag — reduces localised map values ({ en: ..., fr: ... }) to the active language; plain values and non-matching maps pass through untouched, so one data file builds one language per run.
  • @duration builtin<< start | @duration >> formats an employment length from a { start, end? } date object (localised, end defaults to today), or passes a plain string through for fixed labels.
  • GitHub Action gains a language input mapped to -l.
  • README + unit tests (14 pass) + changeset (minor → v1.1.0).

Why

Drives the bilingual resume in scme0/resumes and moves employment-length computation out of LaTeX shell-escape into the engine (no more node + -shell-escape at build time).

🤖 Generated with Claude Code

Add a `-l`/`--lang` flag that reduces localised map values (e.g.
{ en: ..., fr: ... }) to the active language, leaving plain values and
non-matching maps untouched, so one data file builds one language per run.

Add an `@duration` builtin (`<< start | @duration >>`) that formats an
employment length from a { start, end? } date object (localised, end
defaults to today), or passes a plain string through for fixed labels.

Expose the language as an input on the GitHub Action, document both
features in the README, and cover them with unit tests.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@scme0
scme0 merged commit 1c9fa97 into main Jun 30, 2026
1 check passed
@scme0
scme0 deleted the feat/lang-and-duration branch June 30, 2026 09:03
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.

1 participant