Skip to content

v1.2.0

Choose a tag to compare

@sapatmohit sapatmohit released this 11 Oct 13:24
b1d5e75

Behaviour changes

No props were removed or renamed. These fixes change what some existing setups render:

  • LanguageSwitcher flags: language codes now map to the country where the language is primarily spoken. For example, ml shows 🇮🇳 instead of 🇲🇱 and ca shows 🇪🇸 instead of 🇦🇩. eo and yi now fall back to 🌐. (#41)
  • LanguageSwitcher direction: Locale.rtl now sets the direction of the root and options. An explicit rtl: false is no longer overridden by built-in detection. (#38)
  • NavBar labels: NavBar now uses the shared language tables. Regional codes like en-US render as "English 🇺🇸" instead of "EN-US 🌐", and per-locale label/flag overrides are applied to the trigger. (#42)
  • shadcn registry: language-switcher and navbar now depend on a new locale-data registry item. The shadcn CLI installs it automatically. (#42)

New components

  • TranslationWidget: side-by-side source and target panes with per-pane language pickers, a swap button and RTL-aware text. (#22)
  • LocaleNumber: locale-aware formatting for decimals, percentages, units and compact notation. (#40)
  • RelativeTime: locale-aware relative time ("3 hours ago") with optional live updates. It is SSR-safe. (#40)

Fixes

  • LanguageSwitcher: corrected native names for Armenian, Lao, Khmer, Amharic and Sindhi. (#39)
  • Docs: /docs now redirects to /docs/getting-started. (#21)

What's Changed

  • style: format rulebook.tsx so CI passes by @sapatmohit in #20
  • fix: redirect /docs to /docs/getting-started by @sapatmohit in #21
  • fix(language-switcher): honor Locale.rtl on root and options by @Wenyan0315 in #38
  • fix(language-switcher): correct five native language names by @Wenyan0315 in #39
  • feat: add TranslationWidget component by @ujwalbajaj in #22
  • feat: add locale-aware number and relative time formatters by @Chandana5599 in #40
  • fix(language-switcher): correct wrong and invalid flag mappings by @ujwalbajaj in #41
  • fix(navbar): honor locale overrides and regional codes via shared locale data by @Wenyan0315 in #42

New Contributors

Full Changelog: v1.1.4...v1.2.0