LiteCommands icon indicating copy to clipboard operation
LiteCommands copied to clipboard

support i18n

Open Rollczi opened this issue 1 year ago • 8 comments

Rollczi avatar Aug 07 '24 12:08 Rollczi

Hi there...Can I work on this issue ?

vihar-s1 avatar Sep 30 '24 17:09 vihar-s1

Hi, @vihar-s1

Of course, that's nice of you.

Rollczi avatar Sep 30 '24 17:09 Rollczi

thank you!

can you brief me once on what you are expecting from the i18n support so I that can work on this accordingly.

vihar-s1 avatar Sep 30 '24 18:09 vihar-s1

I don't have a specific idea at the moment. It is worth considering this so that it makes sense in the final version

Rollczi avatar Sep 30 '24 18:09 Rollczi

no worries...I see what I can do

vihar-s1 avatar Oct 01 '24 13:10 vihar-s1

So I did some research from my end and I will require some assistance here from your end as well. I need to clarify as to what text do you want to get translated before I begin. The i18n support heavily depends on the context of what is being translated. The best I could do right now is create a workflow, which when triggered would run some scripts to setup i18n files but i would still need to know what I am data I am going to map in the i18n files

vihar-s1 avatar Oct 06 '24 18:10 vihar-s1

I think we need easy to use API to translate all parts of command such as arguments (also depending on language of sender, (one exception, discord don't support dynamic command structure)) Unfortunately I don't know how API could look good...

Second idea: We can think about placeholder system to easy translate commands from plugin configuration

Rollczi avatar Oct 07 '24 08:10 Rollczi

so, the thing is, or the multi-language support, i18n files need to be generated which are basically sort of map of language vs text. It would be easy to generate the english language mapping. What I am thinking is that I can use some translation API to generate the text in other languages from the english language mapping

vihar-s1 avatar Oct 08 '24 18:10 vihar-s1