Skip to content

fix: setup localization and language selection#6

Merged
LeoMartinDev merged 4 commits intomainfrom
fix/setup-i18n-language
Mar 2, 2026
Merged

fix: setup localization and language selection#6
LeoMartinDev merged 4 commits intomainfrom
fix/setup-i18n-language

Conversation

@LeoMartinDev
Copy link
Copy Markdown
Owner

@LeoMartinDev LeoMartinDev commented Mar 2, 2026

Summary

  • Fix setup localization end-to-end for both English and French (step titles, descriptions, labels, and actions), addressing the setup language inconsistency reported in issue The initial configuration is available only in french #5.
  • Add a dedicated first setup step for language selection and propagate the selected language through setup completion.
  • Centralize language handling with shared language options and language-code normalization across setup and settings.
  • Keep Zod validation locale synchronized with i18n language changes and replace admin-step raw Zod messages with explicit translated messages.
  • Fix admin-step validation state persistence when navigating back: submit-attempt state and stale errors are reset, preventing old French errors from reappearing after switching to English.

Closes #5

Voy.-.setup.language.mp4

- Introduce default language handling and supported language codes in i18n configuration.
- Add validation messages for required fields in English and French locales.
- Refactor language handling in setup and settings components to utilize normalized language codes.
- Update admin step schema to improve password confirmation validation.
- Streamline language selection in the language switcher and language step components.
@LeoMartinDev LeoMartinDev self-assigned this Mar 2, 2026
- Simplify language configuration in i18n and streamline language selection in components.
- Enhance the setup process by adding user ID resolution and default user settings.
- Update safe search validation to use enum values for better clarity.
@LeoMartinDev LeoMartinDev changed the title Fix setup localization and language selection fixsetup localization and language selection Mar 2, 2026
@LeoMartinDev LeoMartinDev changed the title fixsetup localization and language selection fix: setup localization and language selection Mar 2, 2026
- Reorganize imports in admin-step component for clarity.
- Integrate default user settings and safe search handling in setup process.
- Improve formatting of safe search assignment for better readability.
@LeoMartinDev LeoMartinDev merged commit 29df192 into main Mar 2, 2026
1 check 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.

The initial configuration is available only in french

1 participant