Hi!
Is there a variable I can check on the client side to find out the user's requested language?
Thanks,
Thomas
Is there a variable I can check on the client side to find out the user's requested language?
Thanks,
Thomas
Thanks for asking - if I'm allowed to "hijack", I've got an identical question about the game I'm developing (Deus). The image files I was given included two versions of the cards - one with names/text in English and the other in French. So far I'm only using the English ones but since the publisher included the French ones, and I believe they're a French-speaking publisher, it would be good to be able to use the French ones instead where appropriate. I'm not even going to think about implementing anything until the game logic is complete, but this was definitely on my mind to ask as part of the review process so I'm glad someone else has asked the question in advance__wiz__ wrote: ↑06 June 2021, 11:31 It seems I'll be getting images for different language versions of a game (the graphics differ, so it's not just text replacement), so I want to display the correct images for the language.
Not sure how else to do that than to turn preloading off and then load the proper images for the language based on the client's language. But if you have better ideas?
Post by User Already Exists »
Code: Select all
switch (_("en")) {
case "en":
default:
// use English cards
break;
case "fr":
// use French cards
break;
}
Post by apollo1001 »