ShrimpCryptid / Secret-Hitler-Online

An online version of Secret Hitler, a social deduction board game.
75 stars 13 forks source link

Languages? #28

Open ErdemGKSL opened 2 years ago

ErdemGKSL commented 2 years ago

Im playing this game with my friends but new players are having hard times to get used to the game, can you give more languages? also i can help for the turkish language. This game is kinda popular in turkey so it would be good.

ShrimpCryptid commented 2 years ago

Thanks for the post! I'm tagging this as an enhancement for now, as I'd definitely be interested in adding multi-language support but also I don't have a lot of experience with it.

The Secret Hitler Online interface would need a pretty large refactor to even begin to allow for translation, as most strings are hard-coded (eep!). I'll look into what changes would need to be made to the source code and what translation platforms are out there; I'm currently considering Crowdin, which allows for public contributions.

If anyone else is interested, could you please comment on this thread or add a reaction?

ErdemGKSL commented 2 years ago

You can put a language select box. And with javascript, you can replace all the strings in the content of the website (with a simple json etc.). It is not a stable method to do it but it would work and can be done easily. (I do not know how does react works it might be incompatible)

artronen commented 2 months ago

Hey guys! I vote for the issue and can you help with the Russian