fix(i18n): correct Chinese translation for TS2561#63300
Closed
hnshah wants to merge 1 commit intomicrosoft:mainfrom
Closed
fix(i18n): correct Chinese translation for TS2561#63300hnshah wants to merge 1 commit intomicrosoft:mainfrom
hnshah wants to merge 1 commit intomicrosoft:mainfrom
Conversation
The current Chinese translation for error TS2561 has reversed logic:
- Current (wrong): "但'{0}'中不存在类型'{1}'"
(literally: "but type '{1}' does not exist in '{0}'")
- Fixed (correct): "但'{0}'在类型'{1}'中不存在"
(correctly: "but '{0}' does not exist in type '{1}'")
The word order was backwards, making the error message confusing and
grammatically incorrect for Chinese developers.
Also improved phrasing:
- Removed unnecessary "的" (possessive particle)
- Changed "是否要写入" to more natural "您是否想写"
- Added quotes around {2} for consistency with English
Fixes microsoft#63274
Author
|
@microsoft-github-policy-service agree |
Member
|
Localizations are sourced from our loc team, so these will get overwritten on their next merge. Unfortunately we don't have a way to directly upstream user-provided translation improvements. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #63274
The current Simplified Chinese translation for error TS2561 has reversed logic that confuses developers.
The Problem
Current (incorrect):
This literally means: "but type '{1}' does not exist in '{0}'" — backwards!
English original:
The Fix
Corrected translation:
Now correctly means: "but '{0}' does not exist in type '{1}'"
Additional Improvements
Testing
Verified the corrected translation is grammatically correct and accurately conveys the original English meaning.
Impact
Improves developer experience for Chinese-speaking TypeScript users by providing accurate, understandable error messages.