r-o-b-o-t-o / azerothcore-armory

A website to view your AzerothCore server's characters
MIT License
49 stars 24 forks source link

Is it possible to get descriptions of objects in another language? #31

Closed MRafStudio closed 1 year ago

MRafStudio commented 1 year ago

Your question

In the question, I’m starting from how much it is possible, instead of English, to get a description of character objects in any other language..

r-o-b-o-t-o commented 1 year ago

Append ?locale=xx to every power.js import. For instance:

                $("<script>")
-                       .attr("src", "{{aowow}}/static/widgets/power.js")
+                       .attr("src", "{{aowow}}/static/widgets/power.js?locale=ru")
                        .appendTo("body");

There are 3 imports you'd need to replace as of now: https://github.com/search?q=repo%3Ar-o-b-o-t-o%2Fazerothcore-armory%20power.js&type=code