@windrun-huaiin/base-ui 3.2.2 → 3.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.d.mts +29 -1
- package/dist/components/index.d.ts +29 -1
- package/dist/components/index.js +149 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +147 -0
- package/dist/components/index.mjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +147 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +145 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/language-detector.tsx +1 -1
- package/src/components/language-switcher.tsx +1 -1
package/package.json
CHANGED
@@ -35,7 +35,7 @@ interface LanguagePreference {
|
|
35
35
|
timestamp: number;
|
36
36
|
}
|
37
37
|
|
38
|
-
export
|
38
|
+
export function LanguageDetector({ i18nConfig }: LanguageDetectorProps) {
|
39
39
|
const [show, setShow] = useState(false)
|
40
40
|
const [detectedLocale, setDetectedLocale] = useState<Locale | null>(null)
|
41
41
|
const currentLocale = useLocale()
|
@@ -25,7 +25,7 @@ interface LanguageSwitcherProps {
|
|
25
25
|
localeLabels: Record<string, string>;
|
26
26
|
}
|
27
27
|
|
28
|
-
export
|
28
|
+
export function LanguageSwitcher({ locales, localeLabels }: LanguageSwitcherProps) {
|
29
29
|
const locale = useLocale()
|
30
30
|
const router = useRouter()
|
31
31
|
const pathname = usePathname()
|