Skip to content

Commit

Permalink
🐛 fix: fix documents i18n (lobehub#1319)
Browse files Browse the repository at this point in the history
* 🐛 fix: fix plugin install button

* 🌐 style: update i18n
  • Loading branch information
arvinxx authored Feb 18, 2024
1 parent 99c65ca commit a0600dc
Show file tree
Hide file tree
Showing 17 changed files with 18 additions and 16 deletions.
1 change: 1 addition & 0 deletions locales/ar/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"defaultAgent": "مساعد افتراضي",
"defaultSession": "جلسة افتراضية",
"delete": "حذف",
"document": "وثيقة الاستخدام",
"duplicate": "إنشاء نسخة",
"edit": "تحرير",
"export": "تصدير الإعدادات",
Expand Down
1 change: 1 addition & 0 deletions locales/de-DE/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"defaultAgent": "Standardassistent",
"defaultSession": "Standardassistent",
"delete": "Löschen",
"document": "Dokumentation",
"duplicate": "Duplikat erstellen",
"edit": "Bearbeiten",
"export": "Exportieren",
Expand Down
1 change: 1 addition & 0 deletions locales/en-US/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"defaultAgent": "Default Agent",
"defaultSession": "Default Agent",
"delete": "Delete",
"document": "User Manual",
"duplicate": "Create Duplicate",
"edit": "Edit",
"export": "Export Configuration",
Expand Down
1 change: 1 addition & 0 deletions locales/es-ES/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"defaultAgent": "Asistente predeterminado",
"defaultSession": "Sesión predeterminada",
"delete": "Eliminar",
"document": "Documento de uso",
"duplicate": "Duplicar",
"edit": "Editar",
"export": "Exportar configuración",
Expand Down
1 change: 1 addition & 0 deletions locales/fr-FR/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"defaultAgent": "Agent par défaut",
"defaultSession": "Session par défaut",
"delete": "Supprimer",
"document": "Document d'utilisation",
"duplicate": "Dupliquer",
"edit": "Modifier",
"export": "Exporter",
Expand Down
1 change: 1 addition & 0 deletions locales/it-IT/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"defaultAgent": "Assistente predefinito",
"defaultSession": "Sessione predefinita",
"delete": "Elimina",
"document": "Documento di utilizzo",
"duplicate": "Duplicato",
"edit": "Modifica",
"export": "Esporta configurazione",
Expand Down
1 change: 1 addition & 0 deletions locales/ja-JP/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"defaultAgent": "デフォルトエージェント",
"defaultSession": "デフォルトセッション",
"delete": "削除",
"document": "ドキュメント",
"duplicate": "コピーを作成する",
"edit": "編集",
"export": "エクスポート",
Expand Down
1 change: 1 addition & 0 deletions locales/ko-KR/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"defaultAgent": "기본 에이전트",
"defaultSession": "기본 세션",
"delete": "삭제",
"document": "사용 설명서",
"duplicate": "복제품 만들기",
"edit": "편집",
"export": "내보내기",
Expand Down
1 change: 1 addition & 0 deletions locales/nl-NL/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"defaultAgent": "Standaard assistent",
"defaultSession": "Standaard assistent",
"delete": "Verwijderen",
"document": "Gebruiksaanwijzing",
"duplicate": "Dupliceren",
"edit": "Bewerken",
"export": "Exporteren",
Expand Down
1 change: 1 addition & 0 deletions locales/pl-PL/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"defaultAgent": "Domyślny asystent",
"defaultSession": "Domyślna sesja",
"delete": "Usuń",
"document": "Dokumentacja",
"duplicate": "Utwórz kopię",
"edit": "Edytuj",
"export": "Eksportuj ustawienia",
Expand Down
1 change: 1 addition & 0 deletions locales/pt-BR/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"defaultAgent": "Assistente padrão",
"defaultSession": "Sessão padrão",
"delete": "Excluir",
"document": "Documento de Uso",
"duplicate": "Duplicar",
"edit": "Editar",
"export": "Exportar configuração",
Expand Down
1 change: 1 addition & 0 deletions locales/ru-RU/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"defaultAgent": "Пользовательский агент",
"defaultSession": "Пользовательский агент",
"delete": "Удалить",
"document": "Документация",
"duplicate": "Создать копию",
"edit": "Редактировать",
"export": "Экспорт настроек",
Expand Down
1 change: 1 addition & 0 deletions locales/tr-TR/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"defaultAgent": "Varsayılan Asistan",
"defaultSession": "Varsayılan Asistan",
"delete": "Sil",
"document": "Belge",
"duplicate": "Kopya oluştur",
"edit": "Düzenle",
"export": "Dışa Aktar",
Expand Down
1 change: 1 addition & 0 deletions locales/vi-VN/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"defaultAgent": "Trợ lý mặc định",
"defaultSession": "Phiên mặc định",
"delete": "Xóa",
"document": "Tài Liệu Sử Dụng",
"duplicate": "Tạo bản sao",
"edit": "Chỉnh sửa",
"export": "Xuất cấu hình",
Expand Down
1 change: 1 addition & 0 deletions locales/zh-CN/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"defaultAgent": "自定义助手",
"defaultSession": "自定义助手",
"delete": "删除",
"document": "使用文档",
"duplicate": "创建副本",
"edit": "编辑",
"export": "导出配置",
Expand Down
1 change: 1 addition & 0 deletions locales/zh-TW/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"defaultAgent": "預設助手",
"defaultSession": "預設助手",
"delete": "刪除",
"document": "使用說明文件",
"duplicate": "建立副本",
"edit": "編輯",
"export": "匯出設定",
Expand Down
18 changes: 2 additions & 16 deletions src/features/PluginStore/OnlineList.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Icon, SearchBar } from '@lobehub/ui';
import { Button, Empty } from 'antd';
import { Empty } from 'antd';
import { useResponsive } from 'antd-style';
import isEqual from 'fast-deep-equal';
import { ServerCrash } from 'lucide-react';
Expand All @@ -24,15 +24,8 @@ export const OnlineList = memo(() => {

return [...custom, ...store];
}, isEqual);
const storePluginIds = useToolStore(
(s) => pluginStoreSelectors.onlinePluginStore(s).map((s) => s.identifier),
isEqual,
);

const [useFetchPluginList, installPlugins] = useToolStore((s) => [
s.useFetchPluginStore,
s.installPlugins,
]);
const useFetchPluginList = useToolStore((s) => s.useFetchPluginStore);

const { isLoading, error } = useFetchPluginList();

Expand All @@ -51,13 +44,6 @@ export const OnlineList = memo(() => {
/>
</Flexbox>
<AddPluginButton />
<Button
onClick={() => {
installPlugins(storePluginIds);
}}
>
{t('store.installAllPlugins')}
</Button>
</Flexbox>

{isLoading ? (
Expand Down

0 comments on commit a0600dc

Please sign in to comment.