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

Portuguese translate updates and locales-tool added #965

Merged
merged 2 commits into from
Nov 17, 2024

Conversation

unnamed-orbert
Copy link
Contributor

feat(i18n): add comprehensive localization support tool

Add a browser-based translation management tool to assist with OldTwitter localization efforts. This tool provides:

  • Side-by-side comparison of base (EN) and target translations
  • Visual diff highlighting missing and extra translations
  • Structural validation of locale files
  • Dark/light mode support for extended usage
  • JSON conversion utility for easy translation input
  • Statistics dashboard showing translation progress

The tool supports all current OldTwitter locales and integrates with the existing test.js validation system. Translators can now:

  • Easily identify missing translations
  • Validate JSON structure
  • Convert plain text to proper locale format
  • Track translation progress visually

Technical implementation:

  • Pure JavaScript/HTML/CSS solution
  • No external dependencies except jsdiff
  • Offline-capable with static locale list
  • Responsive design with accessibility considerations

Part of the ongoing effort to improve OldTwitter's internationalization workflow.

feat(locales-tool): enhance dark mode and improve visual feedback

  • Add dark mode support for diff container with semi-transparent background
  • Fix contrast issues in diff section headers
  • Improve visibility of added/removed status indicators
  • Adjust text colors for better readability in both light/dark modes

Technical changes:

  • Added specific styling for removed/added section headers
  • Fixed color inheritance in dark mode
  • Adjusted background opacity for better content visibility
  • Maintained semantic meaning through color indicators

Note: Minor visual artifacts may occur in dark mode due to CSS specificity, but core functionality remains intact.

feat(i18n): add comprehensive localization support tool

Add a browser-based translation management tool to assist with
OldTwitter localization efforts. This tool provides:

- Side-by-side comparison of base (EN) and target translations
- Visual diff highlighting missing and extra translations
- Structural validation of locale files
- Dark/light mode support for extended usage
- JSON conversion utility for easy translation input
- Statistics dashboard showing translation progress

The tool supports all current OldTwitter locales and integrates
with the existing test.js validation system. Translators can now:
- Easily identify missing translations
- Validate JSON structure
- Convert plain text to proper locale format
- Track translation progress visually

Technical implementation:
- Pure JavaScript/HTML/CSS solution
- No external dependencies except jsdiff
- Offline-capable with static locale list
- Responsive design with accessibility considerations

Part of the ongoing effort to improve OldTwitter's
internationalization workflow.

feat(locales-tool): enhance dark mode and improve visual feedback

- Add dark mode support for diff container with semi-transparent background
- Fix contrast issues in diff section headers
- Improve visibility of added/removed status indicators
- Adjust text colors for better readability in both light/dark modes

Technical changes:
- Added specific styling for removed/added section headers
- Fixed color inheritance in dark mode
- Adjusted background opacity for better content visibility
- Maintained semantic meaning through color indicators

Note: Minor visual artifacts may occur in dark mode due to
CSS specificity, but core functionality remains intact.
@dimdenGD
Copy link
Owner

Locales folder must only have folders with translations, so you should probably move index.html to _locales itself

- index.html\locales-support moved to ./_locales and renamed index.html to locales-support.html,
- _locales\readme.me updated
@unnamed-orbert
Copy link
Contributor Author

right, im fix this and now the build back works <3

@dimdenGD dimdenGD merged commit 1148430 into dimdenGD:master Nov 17, 2024
2 checks passed
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