plotly / plotly/plotly.js

add date templates for 'ru' locale

Open
#5,678 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature P3
Dominant language
JavaScript
Stars
18.3k
Forks
2k
Avg merge
2d 12h
Merged PRs (30d)
28

Description

Date's ru local pattern is format.date: "%d.%m.%Y". But it seems like format.dayMonth and format.dayMonthYear are missing. The month should be written after the date.

I suggest adding templates to plotly-locale-ru.js:

    format: {
        dayMonth: "%d.%m",
        dayMonthYear: "%d.%m.%Y"
    }

Contributor guide

Open the contributing guide

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.

Research direction

Open plotly-locale-ru.js and inspect the existing format.date template. Add the missing dayMonth and dayMonthYear templates using the requested Russian date ordering; the issue is done when both formats are present in the locale definition.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
localization
Issue type
Feature
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.