fix(i18n): rename duplicate 'transfer' key in transaction.json #21
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.
问题
Transfer 页面的翻译显示原始键名(如
transfer.quickTransfer)而非翻译文本。根本原因
transaction.json 文件中存在重复的
transfer键:"transfer": { ... }对象(包含 TransferTab 所需的所有嵌套翻译)"transfer": "轉賬"字符串在 JSON 中,后面的键会覆盖前面的,所以字符串覆盖了整个对象,导致所有
transfer.*翻译失效。修复
将字符串键从
"transfer"重命名为"transferAction",避免与对象键冲突。影响的文件
测试