partridgejiang / Kekule.js

A Javascript cheminformatics toolkit.
http://partridgejiang.github.io/Kekule.js
MIT License
248 stars 61 forks source link

Chinese and English confusion in the toolbar #231

Closed niuzhenjiang closed 3 years ago

niuzhenjiang commented 3 years ago

Chinese and English confusion in the toolbar, i use newest version:

please fix the problem,thank you very much!!

截屏2021-06-26 下午2 38 51 截屏2021-06-26 下午2 36 32
partridgejiang commented 3 years ago

Hi @niuzhenjiang, it seems the language resources is not fully loaded in your page. Could you check the Kekule.VERSION value , or try with the latest dist file in this repository? The latest version should be 0.9.7.

niuzhenjiang commented 3 years ago
截屏2021-06-27 下午1 26 39

my kekule version is 0.9.7,i'm download this latest resources from your master, it have this languange problem,but i use it :

Do I need to use other function to load language files?

partridgejiang commented 3 years ago

Hi @niuzhenjiang, thanks for the feedback. The issue is caused by a wrong minimization sequence of kekule.min.js and has now been fixed. Please check the latest dist files.

niuzhenjiang commented 3 years ago

it works,thank you very much~,but i want to ask a question: when i load kekule.min.js, it default set chinese,i want to set english,how can i do it?

partridgejiang commented 3 years ago

By default, Kekule.js will detect the language settings of the web browser and use the corresponding language resources (Chinese or English) automatically. The language can also be appointed manually. When using kekule.js (not kekule.min.js), extra language params in Githubissues.

  • Githubissues is a development platform for aggregating issues.