Database diagrams editor that allows you to visualize and design your DB with a single query.
TypeScript databasedbdb-migrationeditorerdmariadbmssqlmysqlpostgresqlreactreact-flowschema-migrationssqlsqlitetypescriptvisualizationxyflow
add translations
Guy Ben-Aharon49f1de7e7187
diff --git a/src/components/select-box/select-box.tsx b/src/components/select-box/select-box.tsxindex aef70fc1..9a93adf0 100644--- a/src/components/select-box/select-box.tsx+++ b/src/components/select-box/select-box.tsx@@ -17,6 +17,7 @@ import {PopoverTrigger,} from '@/components/popover/popover';import { ScrollArea } from '@/components/scroll-area/scroll-area';+import { useTranslation } from 'react-i18next';export interface SelectBoxOption {value: string;@@ -61,6 +62,7 @@ export const SelectBox = React.forwardRef<HTMLInputElement, SelectBoxProps>() => {const [searchTerm, setSearchTerm] = React.useState<string>('');const [isOpen, setIsOpen] = React.useState(false);+ const { t } = useTranslation();const handleSelect = React.useCallback((selectedValue: string) => {@@ -161,7 +163,9 @@ export const SelectBox = React.forwardRef<HTMLInputElement, SelectBoxProps>(handleClear();}}>- <span className="text-xs">Clear</span>+ <span className="text-xs">+ {t('clear')}+ </span>{/* <Cross2Icon className="size-4" /> */}</div>) : (@@ -201,7 +205,7 @@ export const SelectBox = React.forwardRef<HTMLInputElement, SelectBoxProps>(className="absolute inset-y-0 right-0 flex cursor-pointer items-center pr-3 text-xs text-muted-foreground hover:text-foreground"onClick={() => onSelectAll?.()}>- Select All+ {t('select_all')}</div>)}{!searchTerm &&@@ -212,7 +216,7 @@ export const SelectBox = React.forwardRef<HTMLInputElement, SelectBoxProps>(className="absolute inset-y-0 right-0 flex cursor-pointer items-center pr-3 text-xs text-muted-foreground hover:text-foreground"onClick={() => onDeselectAll?.()}>- Deselect All+ {t('deselect_all')}</div>)}</div>diff --git a/src/i18n/locales/en.ts b/src/i18n/locales/en.tsindex b1fa781e..b2a7b7fd 100644--- a/src/i18n/locales/en.ts+++ b/src/i18n/locales/en.ts@@ -65,6 +65,9 @@ export const en = {saved: 'Saved',diagrams: 'Diagrams',loading_diagram: 'Loading diagram...',+ deselect_all: 'Deselect All',+ select_all: 'Select All',+ clear: 'Clear',side_panel: {view_all_options: 'View all Options...',diff --git a/src/i18n/locales/es.ts b/src/i18n/locales/es.tsindex 66ee7f41..f12fe439 100644--- a/src/i18n/locales/es.ts+++ b/src/i18n/locales/es.ts@@ -65,6 +65,9 @@ export const es: LanguageTranslation = {saved: 'Guardado',diagrams: 'Diagramas',loading_diagram: 'Cargando diagrama...',+ deselect_all: 'Deselect All', // TODO: Translate+ select_all: 'Select All', // TODO: Translate+ clear: 'Clear', // TODO: Translateside_panel: {view_all_options: 'Ver todas las opciones...',