JWB icon indicating copy to clipboard operation
JWB copied to clipboard

Unreliable loading for zh lang

Open yfdyh000 opened this issue 2 years ago • 0 comments

There are some complex changes in translation loading. According to user report and tests, the latest version (4.3.1) of this tool is likely to give an error or fail for Chinese users. Like:

  • Uncaught TypeError: users.indexOf is not a function
  • ⧼not-on-list⧽
  • Uncaught TypeError: Cannot set properties of undefined (setting 'zh_hans')

At least the if (JWB.allowed === true && JWB.messages.length == langs + 1) { // if there are two languages to load, wait for them both be suspicious, the zh-cn locale will got "zh-hans"*2 in langs and about five groups in JWB.messages.

yfdyh000 avatar Dec 29 '21 19:12 yfdyh000