Repository navigation
v1.2.0
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,
mlshows 🇮🇳 instead of 🇲🇱 andcashows 🇪🇸 instead of 🇦🇩.eoandyinow fall back to 🌐. (#41) - LanguageSwitcher direction:
Locale.rtlnow sets the direction of the root and options. An explicitrtl: falseis no longer overridden by built-in detection. (#38) - NavBar labels: NavBar now uses the shared language tables. Regional codes like
en-USrender as "English 🇺🇸" instead of "EN-US 🌐", and per-localelabel/flagoverrides are applied to the trigger. (#42) - shadcn registry:
language-switcherandnavbarnow depend on a newlocale-dataregistry 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:
/docsnow 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
- @Wenyan0315 made their first contribution in #38
- @ujwalbajaj made their first contribution in #22
- @Chandana5599 made their first contribution in #40
Full Changelog: v1.1.4...v1.2.0