dinosaur-exploder
dinosaur-exploder copied to clipboard
[Feature]: translate text into multiple languages
👉 Please confirm the following
- [X] I agree to follow the Code of Conduct that this project adheres to.
- [X] I checked the current issues for duplicate features.
🤔 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
Hi, I would like to try solving this issue , thanks
Hey @PrethamMuthappa, no problem you can work on it if you find things to implement ! I will assign you on the issue.
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
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 ooohhh i see, cool ill take a look into it :)
@PrethamMuthappa Good luck and if you need help or struggle with something, ask me ! :)