You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
i18n: hardcoded English UI strings can't be translated #30
I'll follow the approach in the issue: an optional labels prop with English defaults on LanguageSwitcher, PhoneInput, and NavBar, plus tests and a docs example.
Heads-up before you go further: the redesign (#67, #69, #70, #71) rewrote LanguageSwitcher, PhoneInput, NavBar and TranslationWidget, so please branch from the latest main — work based on the old files will conflict.
It also changed the string inventory:
LanguageSwitcher and PhoneInput now accept searchPlaceholder and emptyMessage; fold those into labels or keep them as aliases.
New hardcoded strings: "Clear search" (switcher, phone input), "Search languages" / "Select language" / "Current language: …" (switcher, navbar), and in TranslationWidget "Swap languages", "Copy translation", "Clear source text", "Translation copied to clipboard" and the character-count text.
Activity
iNerdStack commentedon Oct 19, 2026
@sapatmohit can I be assigned to this?
I'll follow the approach in the issue: an optional labels prop with English defaults on LanguageSwitcher, PhoneInput, and NavBar, plus tests and a docs example.
sapatmohit commentedon Oct 19, 2026
Works buddy, assigned to you now
sapatmohit commentedon Oct 19, 2026
Heads-up before you go further: the redesign (#67, #69, #70, #71) rewrote
LanguageSwitcher,PhoneInput,NavBarandTranslationWidget, so please branch from the latestmain— work based on the old files will conflict.It also changed the string inventory:
LanguageSwitcherandPhoneInputnow acceptsearchPlaceholderandemptyMessage; fold those intolabelsor keep them as aliases.TranslationWidget"Swap languages", "Copy translation", "Clear source text", "Translation copied to clipboard" and the character-count text.LocaleNumberandRelativeTimewere removed (feat!: remove formatters and rebuild docs preview and demos #72), so they're out of scope.Thanks for picking this up.
feat: translatable UI labels for LanguageSwitcher, PhoneInput, NavBar…