diff --git a/esbuild.js b/esbuild.js index 147df6a9..e5a80066 100644 --- a/esbuild.js +++ b/esbuild.js @@ -18,7 +18,7 @@ const onRebuild = () => { } }; -const included = ['express', 'pg', '@runtipi/postgres-migrations']; +const included = ['express', 'pg', '@runtipi/postgres-migrations', 'connect-redis', 'express-session']; const excluded = ['pg-native', '*required-server-files.json']; const external = Object.keys(pkg.dependencies || {}).filter((dep) => !included.includes(dep)); external.push(...excluded); diff --git a/src/client/components/LanguageSelector/LanguageSelector.tsx b/src/client/components/LanguageSelector/LanguageSelector.tsx index a045eef2..e111ab3c 100644 --- a/src/client/components/LanguageSelector/LanguageSelector.tsx +++ b/src/client/components/LanguageSelector/LanguageSelector.tsx @@ -1,9 +1,17 @@ import React from 'react'; import { useLocale } from '@/client/hooks/useLocale'; import { LOCALE_OPTIONS, Locale } from '@/shared/internationalization/locales'; +import { useTranslations } from 'next-intl'; +import { IconExternalLink } from '@tabler/icons-react'; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '../ui/Select'; -export const LanguageSelector = () => { +type IProps = { + showLabel?: boolean; +}; + +export const LanguageSelector = (props: IProps) => { + const { showLabel = false } = props; + const t = useTranslations('settings.settings'); const { locale, changeLocale } = useLocale(); const onChange = (value: Locale) => { @@ -12,7 +20,20 @@ export const LanguageSelector = () => { return (