microsoft / microsoft/pxt

Incorrectly localized the plural of "x month(s) ago"

Open
#8,642 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

localization
Dominant language
TypeScript
Stars
2.3k
Forks
641
Avg merge
12h 4m
Merged PRs (30d)
57

Description

Issue is caused by this line of code
https://github.com/microsoft/pxt/blob/0ead5a7b9a312e1bf3466bb08cf9e2e5c73d2a33/pxtlib/util.ts#L793

This issue exists in at least three languages (portuguese, french, and spanish) and is persisted in all our targets

Currently we get this in es-mx:
image

Correct translation would look like this:
Singular
image

Plural
image

Crowdin string is here.
https://crowdin.com/translate/kindscript/32/en-esmx#52850

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

Start at pxtlib/util.ts line 793, where the issue identifies the localization logic, and compare the Crowdin string with the provided es-mx examples. Check the singular and plural output for Portuguese, French, Spanish, and persisted targets. Done means the localized “x month(s) ago” text uses the correct form in each affected language.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
localization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.