mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 17:30:16 +01:00
🌍: Dutch translation, fix translation, style(Dropdown): added scroll (#1218)
* italian translation * some translation fixes + dutch translation * fix(Dropdown) more dynamic * fix(Nl) * fix(Nl) * added comment in Nl.tsx
This commit is contained in:
parent
822914d521
commit
3838ff4617
11 changed files with 640 additions and 320 deletions
|
|
@ -2,8 +2,11 @@ import type { ReactNode } from 'react';
|
|||
import { EModelEndpoint } from 'librechat-data-provider';
|
||||
import { icons } from './Menus/Endpoints/Icons';
|
||||
import { useChatContext } from '~/Providers';
|
||||
import { useLocalize } from '~/hooks';
|
||||
|
||||
export default function Landing({ Header }: { Header?: ReactNode }) {
|
||||
const { conversation } = useChatContext();
|
||||
const localize = useLocalize();
|
||||
let { endpoint } = conversation ?? {};
|
||||
if (
|
||||
endpoint === EModelEndpoint.assistant ||
|
||||
|
|
@ -22,7 +25,9 @@ export default function Landing({ Header }: { Header?: ReactNode }) {
|
|||
{icons[endpoint ?? 'unknown']({ size: 41, className: 'h-2/3 w-2/3' })}
|
||||
</div>
|
||||
</div>
|
||||
<div className="mb-5 text-2xl font-medium dark:text-white">How can I help you today?</div>
|
||||
<div className="mb-5 text-2xl font-medium dark:text-white">
|
||||
{localize('com_nav_welcome_message')}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -100,6 +100,7 @@ export const LangSelector = ({
|
|||
{ value: 'ko-KR', display: localize('com_nav_lang_korean') },
|
||||
{ value: 'vi-VN', display: localize('com_nav_lang_vietnamese') },
|
||||
{ value: 'tr-TR', display: localize('com_nav_lang_turkish') },
|
||||
{ value: 'nl-NL', display: localize('com_nav_lang_dutch') },
|
||||
];
|
||||
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -86,10 +86,9 @@ const Dropdown: FC<DropdownProps> = ({
|
|||
</svg>
|
||||
</span>
|
||||
</Listbox.Button>
|
||||
|
||||
<Listbox.Options
|
||||
className={cn(
|
||||
'max-h-90 absolute z-50 mt-1 overflow-auto rounded-md shadow-lg transition-opacity focus:outline-none',
|
||||
'absolute z-50 mt-1 max-h-[40vh] overflow-auto rounded-md shadow-lg transition-opacity focus:outline-none',
|
||||
currentThemeStyle,
|
||||
className,
|
||||
)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue