microsoft / microsoft/TypeScript

Japanese translation of the TS2637 error message is wrong.

Open
#54,079 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Bug Domain: Error Messages
Dominant language
Go
Stars
111k
Forks
14.3k
Avg merge
1d 19h
Merged PRs (30d)
117

Description

Bug Report

🔎 Search Terms

translation Japanese variance TS2637

🕗 Version & Regression Information
  • This is the behavior in every version I tried.
⏯ Playground Link

Playground link with relevant code

Error messages in the playground are not localized, therefore I have attached an image taken in VSCode:

スクリーンショット 2023-05-01 11 55 38
💻 Code

Here is the proposed change.

🙁 Actual behavior

The term 'variance' is translated to '分散', which is a statistical term that refers to a measure of how much a set of values differs from their mean.

🙂 Expected behavior

The term 'variance' is translated to '変性', which is a correct term for type variance.

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 with the Playground link and the proposed-change commit referenced in the issue, then compare the TS2637 Japanese diagnostic shown in VSCode. Done means the type-variance term uses the expected Japanese translation and the localized diagnostic is verified.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.