i18n for partial date ticks

Open
#247 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
d3, javascript

Research direction

Start with the time tick format definitions linked in src/time.js and compare the US and French examples in the issue. Check how partial date ticks are formatted and what localization support the package already exposes. Done means the ticks show day before month for the reported locale while preserving the intended formatting for other locales; the issue does not name a test file.

Written by the indexing model from the issue text.

Description

We are receiving feedback from our internationalization folks that some of the ticks that we are seeing in graphs are not properly internationalized.

e.g.

US
image

French
image

The expectation from our internationalization team is that they should be day first and then month. Is that possible? It seems like those representations are all hard coded here: https://github.com/d3/d3-scale/blob/main/src/time.js#L20-L27

Dominant language
JavaScript
Stars
1.6k
Forks
288
Avg merge
6h 41m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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 d3/d3-scale

All issues in d3/d3-scale

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.