Skip to content

i18n: extract authorization screen strings (Part of #145) - #168

Open
everysingletear wants to merge 2 commits into
donetick:developfrom
everysingletear:i18n/auth
Open

i18n: extract authorization screen strings (Part of #145)#168
everysingletear wants to merge 2 commits into
donetick:developfrom
everysingletear:i18n/auth

Conversation

@everysingletear

Copy link
Copy Markdown
Contributor

Part of #145.

Extracts every user-facing string under src/views/Authorization/ into a new auth namespace. English only — no translations in this PR, so it is language-agnostic and safe to review as a pure refactor.

What moves

Screen Covered
LoginView primary/sub-account tabs, credential form, social + Authentik buttons, welcome-back state, all auth error toasts
Signup account creation form and every field-validation message
ForgotPasswordView reset request flow and its toasts
UpdatePasswordView new-password entry, including the mismatch/length errors

auth is registered in src/i18n/config.js; public/locales/en/auth.json holds the 75 keys.

Why this zone first

Login is the first screen a non-English user ever reaches, and right now it is entirely hardcoded — someone who picks a language in settings still gets an English login screen on their next cold start. It is also self-contained: four files, no shared components, so it does not collide with in-flight work elsewhere.

It should also compose well with the Crowdin setup that just landed on develop — the config picks up /public/locales/en/*.json by glob, so this namespace flows into the translation pipeline with no change to crowdin.yml.

Notes

  • No behaviour change: every string maps 1:1 to what rendered before.
  • MFAVerificationModal is deliberately left out — it is entangled with the MFA flow logic and deserves its own pass rather than being smuggled in here.
  • Rebased on current develop; build is green.

Add an `auth` namespace and register it in the i18n config, then move the
login screen off hardcoded English: primary and sub-account tabs, the
credential form, social and Authentik buttons, the welcome-back state and
every auth error toast.

Login is the first screen a non-English user ever sees, so it was the most
visible gap left in the coverage.

Part of donetick#145
Extend the `auth` namespace to the remaining authorization flows: account
creation with its field-validation messages, the password reset request,
and the new-password entry screen, including all toasts.

Completes the authorization zone — no hardcoded user-facing English is
left under src/views/Authorization/ apart from MFA verification, which
touches other logic and is better handled separately.

Part of donetick#145
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.

1 participant