-
-
Notifications
You must be signed in to change notification settings - Fork 440
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
[UI] Add accessibility option to show all game tiles in color #1311
[UI] Add accessibility option to show all game tiles in color #1311
Conversation
src/screens/Accessibility/index.tsx
Outdated
setAllTilesInColor(!allTilesInColor) | ||
}} | ||
title={t( | ||
'accessibility.allTilesInColor', |
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.
Please use camel_case here accessibility.all_titles_in_color
.
Also, please run yarn i18next
after changing that so it updates all the locales for all languages.
Did something go wrong when I ran yarn i18next? |
public/locales/fa/translation.json
Outdated
"library": { | ||
"gridView": "نمای شبکهای", | ||
"gridView": "نمای شبکه\u200cای", |
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.
Could you remove this \u200c
manually? this is i18n bug with languages like this
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.
👍 3842ba3
public/locales/bg/gamepage.json
Outdated
@@ -66,14 +64,6 @@ | |||
"moving": "Преместване", | |||
"repairing": "Поправяне" | |||
}, | |||
"info": { |
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.
those removals doesnt seems right
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.
that's what I was thinking, but that's what happens when I run yarn i18next, even on the up-to-date main branch
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.
yarn i18next
or yarn i18n
? should be the same, I guess. But I will try to investigate this later.
Need to check why so many translations were deleted on this PR. I cannot find any change related to that, so we need to check |
@arielj I believe that the missing keys are related to one of the refactors on the UI. |
Agree on using one single file for all the translations, since we don't really need to modify those files manually anyway, should simplify some code and allow re-usability |
@arielj yes, that will be a lot of work, we have 64 translations file now, but will work best and it is better than losing all translations. |
@connercsbn @arielj
to put it like this: and then run The thing is that for the default file, that is |
60b387e
to
d1ee724
Compare
public/locales/en/translation.json
Outdated
@@ -282,7 +286,6 @@ | |||
"title": "Manual Sync Saves", | |||
"upload": "Upload" | |||
}, | |||
"maxRecentGames": "Played Recently to Show", |
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.
weird that it is still removing a few keys not related with the PR. 🤔
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.
Ah, looks like it's caused by a couple deleted lines from here: 421ae61
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.
Yes, you are right. Let me try to fix those
ok, fixed it in main. Try to update your branch 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.
Seems like last thing I need to do is revert the deletion of these lines, since they're being generated in English for these translation files. I'll see if I can grab the files from the main branch and rerun i18n
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.
Perfect! Thanks a lot for that! :D
Patch to address feature request #1301
This adds an option in accessibility settings that, when enabled, adds the
allTilesInColor
class to the GameCard component, making all tiles show in color.Just wanted to get this out there and get some feedback. Will do checklist soon!
Use the following Checklist if you have changed something on the Backend or Frontend: