-
-
Notifications
You must be signed in to change notification settings - Fork 88
Add localization #771
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add localization #771
Conversation
| label='Class' | ||
| content={character.className} | ||
| label={t('hero:class')} | ||
| content={t('hero:Devil')} // {t(`${character.className}`)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this supposed to be hard-coded to Devil?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right this was before the suggestion to start with hero panel and I had forgotten. I updated it and will check it works
| const size = HeroLogic.getSize(props.hero); | ||
| const sizeSuffix = size.mod || undefined; | ||
|
|
||
| const speed = HeroLogic.getSpeed(props.hero); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm assuming stuff from HeroLogic is not currently localized (which is fine by me, just checking)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeap I just did the "Speed" name for now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried adding the translation to the speed modes.. but don't know how to display them 😅
|
Thanks for looking into it i'll address the various points
had translated it but forgot to put the
Added a
done
Added both for now even if there is no difference. If someone decides they enjoy changingt he various color<->colour etc. they can now :)
this is a good point. Personally I think the best place to handle this would be in code (albeit the hardest maybe) as you said it will spring up with other languages, and it's unreasonable to expect translators to check if the word they use fits in the space or not
I think both of these can be fixed with |


Setup the basic structure for translating the app using i18next-react.
Started the localization for the hero-panel.
Also added a selector in the top right of the navbar to switch between languages.
For the moment only did part of the italian.