Repository navigation
v2.0.0
A ground-up visual redesign: every component now uses shadcn/ui theme tokens, animates with motion, and exposes a classNames prop per part.
⚠️ Breaking changes
- Theme tokens required. Components are styled with shadcn semantic tokens (
bg-popover,text-muted-foreground,ring-ring, …) instead of fixedzinc/emeraldcolours, so they inherit your theme. shadcn projects need nothing; otherwise add the tokens once — see Theme tokens. (#65) LocaleNumberandRelativeTimeremoved. They wrappedIntlformatters and rendered bare text. UseIntl.NumberFormat/Intl.RelativeTimeFormatdirectly. (#72)- New runtime dependencies:
motionandlucide-react.
Components
- LanguageSwitcher — trigger
variant/size, animated menu that flips when there's no room, search with clear and empty state,align/side,renderOption,showCode,searchable. (#67) - LanguageSwitcherPill — spring-animated indicator,
variant,size,showFlags,disabled. (#68) - PhoneInput — unified field with a full-width focus ring,
aria-invalidstyling, redesigned country menu,countriesto restrict / reorder,size. (#69) - NavBar —
variant="floating", spring link highlight,activeHref, animated mobile menu, globe fallback when flags are off. (#70) - TranslationWidget — two-pane card, animated swap, character count with
maxLength, clear, copy,loading,defaultSourceText. (#71) - All:
classNamesslots with exported*ClassNamestypes;prefers-reduced-motionrespected.
Fixes and internals
- RTL detection honours explicit script subtags (
pa-ArabRTL,sd-DevaLTR); language names fall back toIntl.DisplayNames; no component keeps a private locale table. (#75) - Menus reopened while still closing take clicks immediately. (#76)
NavBarmirrors its layout for RTL locales (#52); flags resolve from 2-letter region subtags (#53).
Docs
- New preview: theme picker, dark mode, Open in v0 / Lovable / Bolt, and short copy-paste demos. (#72)
- Install commands use the official
@babelizeshadcn namespace —npx shadcn@latest add @babelize/language-switcher, no setup needed. (#74)
Full changelog: v1.3.0...v2.0.0