Skip to content
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

Reduce repeated translation codes. #291

Merged
merged 10 commits into from
May 3, 2023

Conversation

ungjinPark
Copy link
Contributor

I think existing codes is too repeated. querySelector is too many used unnecesserily.

And, Too long CSS selector has used in querySelector. It is not worng code, but we can use more shorter selector than now.

modified next files

  • /src/views/main.html
  • /src/views/preferences.html
  • /src/views/js/main.js
  • /src/views/js/preferences.js

What's changed?

In html, I gave Id or class attributes at some container to make easier to access from DOM.

In js, I replaced repeated some DOM codes to 'NodeList.forEach' code patterns, and It's work correctly.
and simplified some selectors.

Please review the above files.

@ungjinPark ungjinPark mentioned this pull request Mar 24, 2023
@ferllings
Copy link
Member

@ungjinPark This probably needs some sync as well

@ungjinPark
Copy link
Contributor Author

ungjinPark commented Mar 27, 2023

@ferllings I just merged it. but need more enough test. I checked there was no problem with the naked eye. but not tested with screen readers

@ferllings
Copy link
Member

Any updates? The preferences.html file still have merge issues.

@ungjinPark
Copy link
Contributor Author

@ferllings I've certainly checked and merged codes but I don't know why merging issues are there. I'm on checking.

@ferllings ferllings merged commit 731dd26 into ThePacielloGroup:main May 3, 2023
@ungjinPark ungjinPark deleted the translation branch June 1, 2023 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants