Add Brazilian Portuguese to Google dictionary and fix Portugal Portug…#951
Merged
tisfeng merged 2 commits intotisfeng:mainfrom Aug 24, 2025
Merged
Add Brazilian Portuguese to Google dictionary and fix Portugal Portug…#951tisfeng merged 2 commits intotisfeng:mainfrom
tisfeng merged 2 commits intotisfeng:mainfrom
Conversation
Updates the language code for Brazilian Portuguese from "pt" to "pt-BR" in the Google Translate service mapping. This change ensures that translation requests for Brazilian Portuguese are sent with the correct and specific regional code, distinguishing it from European Portuguese (`pt-PT`) and resolving potential translation inaccuracies.
tisfeng
approved these changes
Aug 24, 2025
Keldos-Li
pushed a commit
to Keldos-Li/Easydict
that referenced
this pull request
Sep 3, 2025
tisfeng#951) * Add Brazilian Portuguese to Google dictionary and fix Portugal Portuguese * fix(google-translate): correct language code for Brazilian Portuguese Updates the language code for Brazilian Portuguese from "pt" to "pt-BR" in the Google Translate service mapping. This change ensures that translation requests for Brazilian Portuguese are sent with the correct and specific regional code, distinguishing it from European Portuguese (`pt-PT`) and resolving potential translation inaccuracies. --------- Co-authored-by: tisfeng <tisfeng@gmail.com>
tisfeng
added a commit
that referenced
this pull request
Sep 6, 2025
#951) * Add Brazilian Portuguese to Google dictionary and fix Portugal Portuguese * fix(google-translate): correct language code for Brazilian Portuguese Updates the language code for Brazilian Portuguese from "pt" to "pt-BR" in the Google Translate service mapping. This change ensures that translation requests for Brazilian Portuguese are sent with the correct and specific regional code, distinguishing it from European Portuguese (`pt-PT`) and resolving potential translation inaccuracies. --------- Co-authored-by: tisfeng <tisfeng@gmail.com>
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.
This pull request updates the language code mappings for Portuguese in the Google Translate service. Specifically, it distinguishes between Brazilian Portuguese and European Portuguese by assigning them their respective language codes.
Language code mapping updates:
EZGoogleTranslate.m, mappedEZLanguageBrazilianPortuguesetopt-BRandEZLanguagePortuguesetopt-PTto differentiate between Brazilian and Portugal Portuguese.Close #945