dinosaur-exploder icon indicating copy to clipboard operation
dinosaur-exploder copied to clipboard

[Feature]: translate text into multiple languages

Open jvondermarck opened this issue 1 year ago • 6 comments

👉 Please confirm the following

🤔 Is your proposal related to a problem?

No response

😍 Describe the solution you'd like

In the menu, it would be nice to have a drop-down list to select a list of different languages, and all the game text should be updated.

👍️ Describe alternatives you've considered

No response

✍ Additional context

No response

jvondermarck avatar Jul 04 '23 20:07 jvondermarck

Hi, I would like to try solving this issue , thanks

PrethamMuthappa avatar Apr 10 '24 13:04 PrethamMuthappa

Hey @PrethamMuthappa, no problem you can work on it if you find things to implement ! I will assign you on the issue.

jvondermarck avatar Apr 17 '24 17:04 jvondermarck

Heyy, was busy for a while couldn't look into it much , I wanted to ask are u comfortable with Google cloud translation API for text translation, I found a way where u can use the google cloud translate java client library to translate text

PrethamMuthappa avatar Apr 30 '24 21:04 PrethamMuthappa

Heyy @PrethamMuthappa, no problem, no need to rush :) I am not a pro of Google Cloud translation API, but I think it is going to not be free. The solution would be to translate everything ourselves, like with a .json file like (en.json for english, fr.json for french and so on), then when the user clicks on a language, it automatically load the json to translate.

For example:

{
  "key": "This is a wonderful day!",
  "nested": {
    "key": "How are you?"
  },
  "interpolated": "Have a nice day, {{name}}!",
  "pluralKey_one": "This is a nice example.",
  "pluralKey_other": "This are nice examples."
}

And then we could make the translation very very easily, with this website: https://translate.i18next.com/

jvondermarck avatar May 06 '24 07:05 jvondermarck

@jvondermarck ooohhh i see, cool ill take a look into it :)

PrethamMuthappa avatar May 06 '24 10:05 PrethamMuthappa

@PrethamMuthappa Good luck and if you need help or struggle with something, ask me ! :)

jvondermarck avatar May 06 '24 11:05 jvondermarck