🌍 : Updated Translations & AI Generation Scripts (#2666)

* chore: bun scripts

* feat: comparisons

* refactor: move scripts to own folder

* feat: generated prompts script and Es output

* feat: generated prompts

* created prompts

* feat: Russian localization prompts

* translation setup

* additional ES translations

* additional ES translations

* translation services

* feat: additional translations

* fix regex for parseParamPrompt

* RU translations

* remove stores from git

* update gitignore

* update gitignore

* ZH translations

* move gen prompt output location

* ZH traditional translations

* AR translations

* chore: rename

* JP

* cleanup scripts

* add additional instruction prompts

* fix translation prompt and add DE

* FR translations (rate limited so not complete)

* chore: update translation comparisons

* chore: remove unused AnthropicClient changes

* refactor: use compositional styling for archive/delete buttons, fix manage archive table styling
This commit is contained in:
Danny Avila 2024-05-10 15:56:25 -04:00 committed by GitHub
parent 978009787c
commit 2ec821ea4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
66 changed files with 51655 additions and 79 deletions

View file

@ -13,14 +13,14 @@ type ArchiveButtonProps = {
retainView: () => void;
shouldArchive: boolean;
icon: React.ReactNode;
twcss?: string;
className?: string;
};
export default function ArchiveButton({
conversationId,
retainView,
shouldArchive,
icon,
twcss = undefined,
className = '',
}: ArchiveButtonProps) {
const localize = useLocalize();
const { newConversation } = useNewConvo();
@ -58,14 +58,9 @@ export default function ArchiveButton({
},
);
};
const classProp: { className?: string } = {
className: 'z-50 hover:text-black dark:hover:text-white',
};
if (twcss) {
classProp.className = twcss;
}
return (
<button type="button" className={classProp.className} onClick={archiveHandler}>
<button type="button" className={className} onClick={archiveHandler}>
<TooltipProvider delayDuration={250}>
<Tooltip>
<TooltipTrigger asChild>