mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: localize language
This commit is contained in:
1 parent
cb3e759f75
commit
06cbe1e733
7 files changed
+82
-50
No files matched your search
@@ -0,0 +1,22 @@
|
||||
import { DEFAULT_LOCALE } from '@blitzkit/core';
|
||||
import { GlobeIcon } from '@radix-ui/react-icons';
|
||||
import { Flex, Text } from '@radix-ui/themes';
|
||||
import type { LocaleAcceptorProps } from '../../hooks/useLocale';
|
||||
import { BlitzKitTheme } from '../BlitzKitTheme';
|
||||
import { LocaleSwitcher } from '../LocaleSwitcher';
|
||||
|
||||
export function HomeLocaleSwitcher({
|
||||
locale = DEFAULT_LOCALE,
|
||||
}: LocaleAcceptorProps) {
|
||||
return (
|
||||
<BlitzKitTheme>
|
||||
<Flex justify="center" mt="4" py="6" align="center" gap="3">
|
||||
<Text size="5" trim="end" color="gray">
|
||||
<GlobeIcon width="1em" height="1em" />
|
||||
</Text>
|
||||
|
||||
<LocaleSwitcher locale={locale} />
|
||||
</Flex>
|
||||
</BlitzKitTheme>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user