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

fix: Refactor WebDAV i18n and UI for improved flexibility and localization #1914

Merged
merged 2 commits into from
Feb 18, 2025

Conversation

lucifer9
Copy link
Contributor

  • i18n Updates:

    • Refactored WebDAV-related translations into nested JSON structures for better organization.
    • Added support for pluralization in time intervals (minutes and hours) across all locales (en-us, ja-jp, ru-ru, zh-cn, zh-tw).
  • UI Enhancements:

    • Updated DataSettings and WebDavSettings components to use the new i18n keys for time intervals.
    • Improved the Select dropdown for sync intervals with dynamic pluralization based on locale.
    • Adjusted input field widths for better alignment and consistency.
  • Code Cleanup:

    • Removed redundant comments and unused code in WebDavSettings.tsx.
    • Simplified button and input styling for a cleaner layout.

 - i18n Updates:
   - Refactored WebDAV-related translations into nested JSON structures for better organization.
   - Added support for pluralization in time intervals (minutes and hours) across all locales (en-us, ja-jp, ru-ru, zh-cn, zh-tw).

 - UI Enhancements:
   - Updated `DataSettings` and `WebDavSettings` components to use the new i18n keys for time intervals.
   - Improved the `Select` dropdown for sync intervals with dynamic pluralization based on locale.
   - Adjusted input field widths for better alignment and consistency.

 - Code Cleanup:
   - Removed redundant comments and unused code in `WebDavSettings.tsx`.
   - Simplified button and input styling for a cleaner layout.
@kangfenmao
Copy link
Collaborator

image

这里没有对齐

@lucifer9
Copy link
Contributor Author

看下现在可以不?

@kangfenmao kangfenmao merged commit b2c6662 into CherryHQ:main Feb 18, 2025
@lucifer9 lucifer9 deleted the i18n branch February 18, 2025 08:24
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