Closed fschatbot closed 1 month ago
@fschatbot Would you mind give some sources where possible? e.g. the thing about the translations is correct. If I am correct this would be a sauce: https://www.i18next.com/how-to/add-or-load-translations
I've done some digging on this and I think it's not that easy to implement this because of the state/structure of the codebase right now.
@flx-sta It is i18
precisely what I am talking about.
In index.js if you search for the term solarPower
you can how there are multiple translations for the same thing in index.js itself.
@torranx Whilst it may be true that the codebase may not allow the sharding the index.js
for various translations. We can at least implement the other 2 suggestions as they I am sure are not hard to implement 100%. The audio suggestion from my understanding would only require the modification of base-scene.ts and as for the JSON not being minified is definitely something that be fixed.
It’s hard to maintain issues with multiple tasks. I have noted those on my list. If those enhancements are still missing in the future feel free to open another issue
Is your feature request related to a problem? Please describe. The website was taking way to long to load and was requesting a lot of needed content from the server which can be optimized quickly.
Describe the Features
index.js
file contains all the translations. This can be removed from theindex.js
and shifted to another JSON file and then loaded as required. For example, all the English translations go toen.json
, Spanish tosp.json
, and so on.0
. This can be easily changed by putting a check in the main audio loader/player code.json
files. This can easily be changed in deployment by just minifying any.json
file or whilst serving the JSON files. A major example would the JSON files requested for sprite rendering.All of the above-mentioned won't be hard to implement and would only a few lines of code to implement. I really like the game but with my bad internet I would highly recommend these changes to reduce the load on both the client and the servers!