🇪🇸 Spanish labels inside the SVG

Open
#27 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
78/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
javascript

Research direction

Read src/render.js to find the SVG label and month strings, then trace how options reach it from bin/commit-horizon.js and scripts/preview.js. Add the en default and es locale through both entry points; done means Spanish labels render with the expected escaping, with tests covering the output.

Written by the indexing model from the issue text.

Description

customization good first issue

Add --locale en|es (default en) so the texts in the SVG can be in Spanish: CONTRIBUCIONES CAYENDO · ÚLTIMOS 12 MESES, racha 9d · más larga 12d · mejor 18 oct (61).

Steps

  1. Move the label strings in src/render.js to a small TEXTS = { en: {...}, es: {...} } object (months included).
  2. Wire the flag in bin/commit-horizon.js and ?locale= in scripts/preview.js.
  3. Test that es renders the Spanish strings and escapes them.
Dominant language
JavaScript
Stars
0
Forks
0
Avg merge
1m
Merged PRs (30d)
9

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from FelipeBeltranING/commit-horizon

All issues in FelipeBeltranING/commit-horizon

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.