Skip to content

Commit

Permalink
fix config generator
Browse files Browse the repository at this point in the history
  • Loading branch information
plainheart committed Jan 9, 2025
1 parent 1262da4 commit de1a8c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/generate-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ const DEFAULT_USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKi
const config = {
websiteEndpoint: richTranslateParams[1],
translateEndpoint: richTranslateParams[0],
spellCheckEndpoint: richTranslateParams[32],
spellCheckEndpoint: richTranslateParams[29],
// maxTextLen: richTranslateParams[5],
// PENDING: hard-coding
maxTextLen: 1000,
// PENDING: hard-coding
maxTextLenCN: 5000,
maxCorrectableTextLen: richTranslateParams[29],
maxCorrectableTextLen: richTranslateParams[26],
maxEPTTextLen: eptRichTranslateParams[5],
correctableLangs: richTranslateParams[30],
correctableLangs: richTranslateParams[27],
eptLangs: eptLangCodes,
userAgent: DEFAULT_USER_AGENT
}
Expand Down

0 comments on commit de1a8c3

Please sign in to comment.