Skip to content

Commit

Permalink
Merge pull request #523 from plebbit/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
plebeius-eth authored Sep 6, 2024
2 parents 1d86267 + b8fc7fb commit 8951e7f
Show file tree
Hide file tree
Showing 37 changed files with 75 additions and 38 deletions.
3 changes: 2 additions & 1 deletion public/translations/ar/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,6 @@
"add": "أضف",
"pattern": "نمط",
"enable": "تفعيل",
"order": "ترتيب"
"order": "ترتيب",
"text": "نص"
}
3 changes: 2 additions & 1 deletion public/translations/bn/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,6 @@
"add": "যোগ করুন",
"pattern": "প্যাটার্ন",
"enable": "সক্রিয় করুন",
"order": "অর্ডার"
"order": "অর্ডার",
"text": "টেক্সট"
}
3 changes: 2 additions & 1 deletion public/translations/cs/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,6 @@
"add": "Přidat",
"pattern": "Vzor",
"enable": "Povolit",
"order": "Pořadí"
"order": "Pořadí",
"text": "Text"
}
3 changes: 2 additions & 1 deletion public/translations/da/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,6 @@
"add": "Tilføj",
"pattern": "Mønster",
"enable": "Aktiver",
"order": "Rækkefølge"
"order": "Rækkefølge",
"text": "Tekst"
}
3 changes: 2 additions & 1 deletion public/translations/de/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,6 @@
"add": "Hinzufügen",
"pattern": "Muster",
"enable": "Aktivieren",
"order": "Reihenfolge"
"order": "Reihenfolge",
"text": "Text"
}
3 changes: 2 additions & 1 deletion public/translations/el/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,6 @@
"add": "Προσθήκη",
"pattern": "Μοτίβο",
"enable": "Ενεργοποιήστε",
"order": "Σειρά"
"order": "Σειρά",
"text": "Κείμενο"
}
3 changes: 2 additions & 1 deletion public/translations/en/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,6 @@
"add": "Add",
"pattern": "Pattern",
"enable": "Enable",
"order": "Order"
"order": "Order",
"text": "Text"
}
3 changes: 2 additions & 1 deletion public/translations/es/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,6 @@
"add": "Añadir",
"pattern": "Patrón",
"enable": "Habilitar",
"order": "Orden"
"order": "Orden",
"text": "Texto"
}
3 changes: 2 additions & 1 deletion public/translations/fa/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,6 @@
"add": "اضافه کردن",
"pattern": "الگو",
"enable": "فعال کردن",
"order": "ترتیب"
"order": "ترتیب",
"text": "متن"
}
3 changes: 2 additions & 1 deletion public/translations/fi/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,6 @@
"add": "Lisää",
"pattern": "Malli",
"enable": "Ota käyttöön",
"order": "Järjestys"
"order": "Järjestys",
"text": "Teksti"
}
3 changes: 2 additions & 1 deletion public/translations/fil/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,6 @@
"add": "Idagdag",
"pattern": "Pattern",
"enable": "I-enable",
"order": "Kaayusan"
"order": "Kaayusan",
"text": "Teksto"
}
3 changes: 2 additions & 1 deletion public/translations/fr/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,6 @@
"add": "Ajouter",
"pattern": "Modèle",
"enable": "Activer",
"order": "Ordre"
"order": "Ordre",
"text": "Texte"
}
3 changes: 2 additions & 1 deletion public/translations/he/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,6 @@
"add": "הוסף",
"pattern": "תבנית",
"enable": "הפעל",
"order": "סדר"
"order": "סדר",
"text": "טקסט"
}
3 changes: 2 additions & 1 deletion public/translations/hi/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,6 @@
"add": "जोड़ें",
"pattern": "पैटर्न",
"enable": "सक्षम करें",
"order": "क्रम"
"order": "क्रम",
"text": "पाठ"
}
3 changes: 2 additions & 1 deletion public/translations/hu/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,6 @@
"add": "Hozzáad",
"pattern": "Minta",
"enable": "Engedélyez",
"order": "Rendelés"
"order": "Rendelés",
"text": "Szöveg"
}
3 changes: 2 additions & 1 deletion public/translations/id/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,6 @@
"add": "Tambahkan",
"pattern": "Pola",
"enable": "Aktifkan",
"order": "Urutan"
"order": "Urutan",
"text": "Teks"
}
3 changes: 2 additions & 1 deletion public/translations/it/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,6 @@
"add": "Aggiungi",
"pattern": "Modello",
"enable": "Abilita",
"order": "Ordine"
"order": "Ordine",
"text": "Testo"
}
3 changes: 2 additions & 1 deletion public/translations/ja/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,6 @@
"add": "追加",
"pattern": "パターン",
"enable": "有効にする",
"order": "順序"
"order": "順序",
"text": "テキスト"
}
3 changes: 2 additions & 1 deletion public/translations/ko/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,6 @@
"add": "추가",
"pattern": "패턴",
"enable": "사용",
"order": "순서"
"order": "순서",
"text": "텍스트"
}
3 changes: 2 additions & 1 deletion public/translations/mr/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,6 @@
"add": "अॅड करा",
"pattern": "पॅटर्न",
"enable": "सक्षम करा",
"order": "आदेश"
"order": "आदेश",
"text": "पाठ"
}
3 changes: 2 additions & 1 deletion public/translations/nl/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,6 @@
"add": "Toevoegen",
"pattern": "Patroon",
"enable": "Inschakelen",
"order": "Volgorde"
"order": "Volgorde",
"text": "Tekst"
}
3 changes: 2 additions & 1 deletion public/translations/no/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,6 @@
"add": "Legg til",
"pattern": "Mønster",
"enable": "Aktiver",
"order": "Rekkefølge"
"order": "Rekkefølge",
"text": "Tekst"
}
3 changes: 2 additions & 1 deletion public/translations/pl/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,6 @@
"add": "Dodaj",
"pattern": "Wzór",
"enable": "Włącz",
"order": "Kolejność"
"order": "Kolejność",
"text": "Tekst"
}
3 changes: 2 additions & 1 deletion public/translations/pt/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,6 @@
"add": "Adicionar",
"pattern": "Padrão",
"enable": "Ativar",
"order": "Ordem"
"order": "Ordem",
"text": "Texto"
}
3 changes: 2 additions & 1 deletion public/translations/ro/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,6 @@
"add": "Adaugă",
"pattern": "Model",
"enable": "Activare",
"order": "Ordine"
"order": "Ordine",
"text": "Text"
}
3 changes: 2 additions & 1 deletion public/translations/ru/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,6 @@
"add": "Добавить",
"pattern": "Шаблон",
"enable": "Включить",
"order": "Порядок"
"order": "Порядок",
"text": "Текст"
}
3 changes: 2 additions & 1 deletion public/translations/sq/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,6 @@
"add": "Shto",
"pattern": "Model",
"enable": "Aktivizo",
"order": "Rendit"
"order": "Rendit",
"text": "Tekst"
}
3 changes: 2 additions & 1 deletion public/translations/sv/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,6 @@
"add": "Lägg till",
"pattern": "Mönster",
"enable": "Aktivera",
"order": "Ordning"
"order": "Ordning",
"text": "Text"
}
3 changes: 2 additions & 1 deletion public/translations/te/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,6 @@
"add": "చేర్చండి",
"pattern": "ప్యాటర్న్",
"enable": "చేర్చు",
"order": "ఆర్డర్"
"order": "ఆర్డర్",
"text": "పాఠం"
}
3 changes: 2 additions & 1 deletion public/translations/th/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,6 @@
"add": "เพิ่ม",
"pattern": "รูปแบบ",
"enable": "เปิดใช้งาน",
"order": "ลำดับ"
"order": "ลำดับ",
"text": "ข้อความ"
}
3 changes: 2 additions & 1 deletion public/translations/tr/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,6 @@
"add": "Ekle",
"pattern": "Desen",
"enable": "Etkinleştir",
"order": "Sıra"
"order": "Sıra",
"text": "Metin"
}
3 changes: 2 additions & 1 deletion public/translations/uk/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,6 @@
"add": "Додати",
"pattern": "Шаблон",
"enable": "Увімкнути",
"order": "Порядок"
"order": "Порядок",
"text": "Текст"
}
3 changes: 2 additions & 1 deletion public/translations/ur/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,6 @@
"add": "شامل کریں",
"pattern": "نمونہ",
"enable": "فعال کریں",
"order": "ترتیب"
"order": "ترتیب",
"text": "متن"
}
3 changes: 2 additions & 1 deletion public/translations/vi/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,6 @@
"add": "Thêm",
"pattern": "Mẫu",
"enable": "Kích hoạt",
"order": "Thứ tự"
"order": "Thứ tự",
"text": "Văn bản"
}
3 changes: 2 additions & 1 deletion public/translations/zh/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,6 @@
"add": "添加",
"pattern": "模式",
"enable": "启用",
"order": "顺序"
"order": "顺序",
"text": "文本"
}
6 changes: 4 additions & 2 deletions src/components/settings-modal/settings-modal.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useState } from 'react';
import { useNavigate } from 'react-router-dom';
import { useLocation, useNavigate } from 'react-router-dom';
import { useTranslation } from 'react-i18next';
import styles from './settings-modal.module.css';
import AccountSettings from './account-settings';
Expand All @@ -12,10 +12,12 @@ import PlebbitOptions from './plebbit-options';

const SettingsModal = () => {
const { t } = useTranslation();
const location = useLocation();
const navigate = useNavigate();

const closeModal = () => {
navigate(-1);
const newPath = location.pathname.replace(/\/settings$/, '');
navigate(newPath);
};

const [showInterfaceSettings, setShowInterfaceSettings] = useState(false);
Expand Down
2 changes: 1 addition & 1 deletion src/views/catalog/catalog-filters/catalog-filters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const FiltersTable = () => {
<tr>
<th>{t('order')}</th>
<th>{t('enable')}</th>
<th>{t('pattern')}</th>
<th>{t('text')}</th>
<th>{t('delete')}</th>
</tr>
</thead>
Expand Down

0 comments on commit 8951e7f

Please sign in to comment.