Skip to content

fix: add zh-CN mapping for Qwen-MT translator - #1202

Open
Morningstar202604 wants to merge 1 commit into
PDFMathTranslate:mainfrom
Morningstar202604:fix/qwenmt-zh-cn-mapping
Open

Morningstar202604 wants to merge 1 commit into
PDFMathTranslate:mainfrom
Morningstar202604:fix/qwenmt-zh-cn-mapping

Conversation

@Morningstar202604

Copy link
Copy Markdown

Description

Qwen-MT’s lang_mapping had no entry for zh-CN, so translating with zh-CN as the source or target language raised a KeyError: "zh-CN". Added the missing mapping to Chinese, next to the existing zh and zh-TW entries, plus a unit test covering the language codes.

Issues

Verification

  • pytest test/test_translator.py passes (10 tests)

Qwen-MT's lang_mapping had no entry for zh-CN, so translating with
zh-CN as the source or target language raised a KeyError. Map it to
Chinese along with zh and zh-TW.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: qwenmt does not work properly in 2.0

1 participant