Skip to content

feat: Add Urdu language, fix RTL and update existing languages#3665

Merged
sea-snake merged 7 commits intomainfrom
sea-snake/add-urdu-language-fix-rtl-and-update-existing-languages
Mar 11, 2026
Merged

feat: Add Urdu language, fix RTL and update existing languages#3665
sea-snake merged 7 commits intomainfrom
sea-snake/add-urdu-language-fix-rtl-and-update-existing-languages

Conversation

@sea-snake
Copy link
Contributor

@sea-snake sea-snake commented Mar 10, 2026

Add Urdu language, fix RTL and update existing languages

Changes

  • Add Urdu to locales
  • Add missing labels to German, Spanish and Indonesian.
  • Update translation script to:
    • use GitHub API instead.
    • run translations in parallel.
    • sent only partial already translated + untranslated.
  • Fix various components to support RTL layout.

Tests

All existing tests should pass as-is.

@sea-snake sea-snake changed the title feat: Add Urdu language fix RTL and update existing languages feat: Add Urdu language, fix RTL and update existing languages Mar 10, 2026
@sea-snake sea-snake requested review from aterga and Copilot and removed request for Copilot March 11, 2026 08:38
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Urdu localization and improves RTL support across the new-styling frontend, while also extending the translation update script to use GitHub Models and run translations in parallel.

Changes:

  • Added ur locale (including a full ur.po catalog) and enabled it in the locale configuration.
  • Updated multiple UI components to behave correctly in RTL (logical spacing, icon flipping, forcing LTR for identity/phrase content where appropriate).
  • Reworked scripts/update-translations to call GitHub Models API, send partial catalogs, and translate multiple locales in parallel.

Reviewed changes

Copilot reviewed 20 out of 20 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/frontend/src/routes/(new-styling)/manage/(authenticated)/+layout.svelte Adjusts logo/header layout for RTL-safe alignment and forces LTR where needed.
src/frontend/src/routes/(new-styling)/manage/(authenticated)/(access-and-recovery)/access/components/PasskeyItem.svelte Uses logical margin (ms-auto) for RTL friendliness.
src/frontend/src/routes/(new-styling)/manage/(authenticated)/(access-and-recovery)/access/components/OpenIdItem.svelte Uses logical margin (ms-auto) for RTL friendliness.
src/frontend/src/routes/(new-styling)/+page.svelte Forces LTR for the brand header group on landing page.
src/frontend/src/routes/(new-styling)/(channel)/authorize/+layout.svelte Uses logical padding/margins (pe-*, -me-*) for RTL support.
src/frontend/src/lib/locales/ur.po Adds Urdu translations catalog.
src/frontend/src/lib/locales/id.po Fills previously missing Indonesian translations.
src/frontend/src/lib/locales/es.po Fills previously missing Spanish translations.
src/frontend/src/lib/locales/de.po Fills previously missing German translations.
src/frontend/src/lib/constants/locale.constants.ts Adds ur, enables it, and introduces getLocaleDirection.
src/frontend/src/lib/components/wizards/createRecoveryPhrase/views/Write.svelte Forces LTR rendering for recovery phrase word grid.
src/frontend/src/lib/components/wizards/createRecoveryPhrase/views/VerifySelecting.svelte Forces LTR rendering for phrase verification selection grid.
src/frontend/src/lib/components/views/RecoveryPhraseInput.svelte Forces LTR direction for recovery phrase input grid.
src/frontend/src/lib/components/ui/Tooltip.svelte Adjusts inline alignment behavior under RTL.
src/frontend/src/lib/components/ui/Toggle.svelte Adds RTL-specific knob translation behavior.
src/frontend/src/lib/components/ui/Popover.svelte Adjusts inline alignment behavior under RTL.
src/frontend/src/lib/components/ui/IdentitySwitcher.svelte Uses logical positioning and flips arrow icon in RTL.
src/frontend/src/lib/components/layout/Header.svelte Forces LTR direction for the brand link group.
src/frontend/src/hooks.client.ts Sets <html lang> and <html dir> based on current locale.
scripts/update-translations Switches to GitHub Models API, adds retries/backoff, and parallel translation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

sea-snake and others added 2 commits March 11, 2026 09:53
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@sea-snake sea-snake added this pull request to the merge queue Mar 11, 2026
Merged via the queue into main with commit 4758ae3 Mar 11, 2026
63 checks passed
@sea-snake sea-snake deleted the sea-snake/add-urdu-language-fix-rtl-and-update-existing-languages branch March 11, 2026 10:48
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.

3 participants