-
Notifications
You must be signed in to change notification settings - Fork 57
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
Implement Translations #252
base: dev
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for ytify ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
This is insane! I didn't expect to have such wide code coverage! Amazing and efficient work. 🤩
Initial over the top suggestions :
- The Language Changer should be in top of settings preferably below or above
Use Custom Instance
as a<Selector>
- Translation for Settings headings
- Missing 'Now Playing' and 'Channel' text from empty Player
- It seems to be based on 7.6.6, so we have to update to 7.6.7 Sync with 7.6.7 optim77/ytify#1
- Add .idea folder to .gitignore to avoid adding to repo 8b02f81
Secondary Notes
|
I have implemented your suggestions As for the questions
in addition, the current font does not support diacritics, so they look bad |
These are actually used, so it's fine.
Is there any way to deal with this? Noto Sans is a popular font so I think it supports all kinds of facilities, the fault might be in my current implementation. https://fonts.google.com/noto/specimen/Noto+Sans Additionally,
|
|
🤯 what that is outstanding, it's here btw : optim77#1 |
Sync with 7.6.7
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.
- in
lingui.config.ts
, the format mentioned is po, but we are not using the po files anymore so is it necessary? - in
src/locales
I think we can remove folders and use files directly as en.ts, pl.ts, insidelingui.config.ts
changing path tosrc/locales/{locale}
- in
ActionsMenu.tsx
,- titles are now using
<span>
element, i think they can be plain jsx expressions by using the { } syntax View Lyrics
isn't translated.
- titles are now using
- in
Settings.tsx
, from the new updatePrefer Stable Volume
has not been translated.
Apart from this we are good enough. We've managed to do this in just 350 lines of code including the english and poland translation files.
Also do you wish to maintain the polish translations after this PR has been merged?
Thanks a lot!
One walkaround:
When switching languages, the content of the options is not translated because the items are not updated, so when switching languages I force a reload of the application (this can be fixed in the future)
I didn't generate production files with translations.