williamtroup / Calendar.js

📅 A javascript drag & drop event calendar, that is fully responsive and compatible with all modern browsers.
https://calendar-js.com
MIT License
478 stars 33 forks source link

Change the way of writing to illustrate that other Option can be expa… #206

Closed ZhangChengLin closed 7 months ago

ZhangChengLin commented 7 months ago

https://calendar-js.com/examples/translations.html

to modify the sample code at the URL above. This indicates that there is more than just a place for translation options.

In addition, why does this translation option not have an exclusive field object in the option? This may reduce the file size, including the size of the translation file and the main file. Because the translation field contains a large number of Text characters, which are of little significance, you can consider reducing them.

` options = { 'TRANSLATION_OPTIONS': { ...__TRANSLATION_OPTIONS }, // otherOptions, }

`

ZhangChengLin commented 7 months ago

With refined translation options, is it possible to dynamically change the interface language?