mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 17:00:15 +01:00
ৎ fix: More String Interpolations (#10798)
This commit is contained in:
parent
b6e5ea5d33
commit
470a73b406
5 changed files with 27 additions and 6 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
import { useRef } from 'react';
|
import { useRef } from 'react';
|
||||||
|
import { Trans } from 'react-i18next';
|
||||||
import { BookCopy } from 'lucide-react';
|
import { BookCopy } from 'lucide-react';
|
||||||
import { Content, Portal, Root, Trigger } from '@radix-ui/react-popover';
|
import { Content, Portal, Root, Trigger } from '@radix-ui/react-popover';
|
||||||
import {
|
import {
|
||||||
|
|
@ -105,7 +106,11 @@ const PresetsMenu: FC = () => {
|
||||||
<OGDialogTitle>{localize('com_ui_delete_preset')}</OGDialogTitle>
|
<OGDialogTitle>{localize('com_ui_delete_preset')}</OGDialogTitle>
|
||||||
</OGDialogHeader>
|
</OGDialogHeader>
|
||||||
<div className="w-full truncate">
|
<div className="w-full truncate">
|
||||||
{localize('com_ui_delete_confirm')} <strong>{presetToDelete.title}</strong>?
|
<Trans
|
||||||
|
i18nKey="com_ui_delete_confirm_strong"
|
||||||
|
values={{ title: presetToDelete.title }}
|
||||||
|
components={{ strong: <strong /> }}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex justify-end gap-4 pt-4">
|
<div className="flex justify-end gap-4 pt-4">
|
||||||
<Button
|
<Button
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
import { useState, useCallback } from 'react';
|
import { useState, useCallback } from 'react';
|
||||||
|
import { Trans } from 'react-i18next';
|
||||||
import { QrCode, RotateCw, Trash2 } from 'lucide-react';
|
import { QrCode, RotateCw, Trash2 } from 'lucide-react';
|
||||||
import {
|
import {
|
||||||
Button,
|
Button,
|
||||||
|
|
@ -187,7 +188,7 @@ export default function SharedLinkButton({
|
||||||
<OGDialog open={showDeleteDialog} onOpenChange={setShowDeleteDialog}>
|
<OGDialog open={showDeleteDialog} onOpenChange={setShowDeleteDialog}>
|
||||||
<OGDialogTemplate
|
<OGDialogTemplate
|
||||||
showCloseButton={false}
|
showCloseButton={false}
|
||||||
title={localize('com_ui_delete_shared_link')}
|
title={localize('com_ui_delete_shared_link_heading')}
|
||||||
className="max-w-[450px]"
|
className="max-w-[450px]"
|
||||||
main={
|
main={
|
||||||
<>
|
<>
|
||||||
|
|
@ -197,7 +198,11 @@ export default function SharedLinkButton({
|
||||||
htmlFor="dialog-confirm-delete"
|
htmlFor="dialog-confirm-delete"
|
||||||
className="text-left text-sm font-medium"
|
className="text-left text-sm font-medium"
|
||||||
>
|
>
|
||||||
{localize('com_ui_delete_confirm')} <strong>"{shareId}"</strong>
|
<Trans
|
||||||
|
i18nKey="com_ui_delete_confirm_strong"
|
||||||
|
values={{ title: shareId }}
|
||||||
|
components={{ strong: <strong /> }}
|
||||||
|
/>
|
||||||
</Label>
|
</Label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
import { useCallback, useState, useMemo, useEffect } from 'react';
|
import { useCallback, useState, useMemo, useEffect } from 'react';
|
||||||
|
import { Trans } from 'react-i18next';
|
||||||
import debounce from 'lodash/debounce';
|
import debounce from 'lodash/debounce';
|
||||||
import { useRecoilValue } from 'recoil';
|
import { useRecoilValue } from 'recoil';
|
||||||
import { Link } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
|
|
@ -326,7 +327,7 @@ export default function SharedLinks() {
|
||||||
<OGDialog open={isDeleteOpen} onOpenChange={setIsDeleteOpen}>
|
<OGDialog open={isDeleteOpen} onOpenChange={setIsDeleteOpen}>
|
||||||
<OGDialogTemplate
|
<OGDialogTemplate
|
||||||
showCloseButton={false}
|
showCloseButton={false}
|
||||||
title={localize('com_ui_delete_shared_link')}
|
title={localize('com_ui_delete_shared_link_heading')}
|
||||||
className="max-w-[450px]"
|
className="max-w-[450px]"
|
||||||
main={
|
main={
|
||||||
<>
|
<>
|
||||||
|
|
@ -336,7 +337,11 @@ export default function SharedLinks() {
|
||||||
>
|
>
|
||||||
<div className="grid w-full items-center gap-2">
|
<div className="grid w-full items-center gap-2">
|
||||||
<Label htmlFor="dialog-confirm-delete" className="text-left text-sm font-medium">
|
<Label htmlFor="dialog-confirm-delete" className="text-left text-sm font-medium">
|
||||||
{localize('com_ui_delete_confirm')} <strong>{deleteRow?.title}</strong>
|
<Trans
|
||||||
|
i18nKey="com_ui_delete_confirm_strong"
|
||||||
|
values={{ title: deleteRow?.title }}
|
||||||
|
components={{ strong: <strong /> }}
|
||||||
|
/>
|
||||||
</Label>
|
</Label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
/* Memories */
|
/* Memories */
|
||||||
import { useMemo, useState, useRef, useEffect } from 'react';
|
import { useMemo, useState, useRef, useEffect } from 'react';
|
||||||
import { Plus } from 'lucide-react';
|
import { Plus } from 'lucide-react';
|
||||||
|
import { Trans } from 'react-i18next';
|
||||||
import { matchSorter } from 'match-sorter';
|
import { matchSorter } from 'match-sorter';
|
||||||
import { SystemRoles, PermissionTypes, Permissions } from 'librechat-data-provider';
|
import { SystemRoles, PermissionTypes, Permissions } from 'librechat-data-provider';
|
||||||
import {
|
import {
|
||||||
|
|
@ -120,7 +121,11 @@ const DeleteMemoryButton = ({ memory }: { memory: TUserMemory }) => {
|
||||||
className="w-11/12 max-w-lg"
|
className="w-11/12 max-w-lg"
|
||||||
main={
|
main={
|
||||||
<Label className="text-left text-sm font-medium">
|
<Label className="text-left text-sm font-medium">
|
||||||
{localize('com_ui_delete_confirm')} "{memory.key}"?
|
<Trans
|
||||||
|
i18nKey="com_ui_delete_confirm_strong"
|
||||||
|
values={{ title: memory.key }}
|
||||||
|
components={{ strong: <strong /> }}
|
||||||
|
/>
|
||||||
</Label>
|
</Label>
|
||||||
}
|
}
|
||||||
selection={{
|
selection={{
|
||||||
|
|
|
||||||
|
|
@ -873,6 +873,7 @@
|
||||||
"com_ui_delete_preset": "Delete Preset?",
|
"com_ui_delete_preset": "Delete Preset?",
|
||||||
"com_ui_delete_prompt": "Delete Prompt?",
|
"com_ui_delete_prompt": "Delete Prompt?",
|
||||||
"com_ui_delete_shared_link": "Delete Shared Link - {{title}}",
|
"com_ui_delete_shared_link": "Delete Shared Link - {{title}}",
|
||||||
|
"com_ui_delete_shared_link_heading": "Delete Shared Link",
|
||||||
"com_ui_delete_prompt_name": "Delete Prompt - {{name}}",
|
"com_ui_delete_prompt_name": "Delete Prompt - {{name}}",
|
||||||
"com_ui_delete_success": "Successfully deleted",
|
"com_ui_delete_success": "Successfully deleted",
|
||||||
"com_ui_delete_tool": "Delete Tool",
|
"com_ui_delete_tool": "Delete Tool",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue