add few locales (#3151)

This commit is contained in:
Andrey Babushkin 2025-03-13 12:08:08 +03:00 committed by GitHub
parent 3b3e95a413
commit 19b350761c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 20 additions and 9 deletions

View file

@ -348,7 +348,7 @@ function AlertForm(props) {
type="checkbox"
checked={instance.webhook}
onClick={onChangeCheck}
label="Webhook"
label={t('Webhook')}
/>
</div>

View file

@ -3,6 +3,7 @@ import { Checkbox } from 'UI';
import { observer } from 'mobx-react-lite';
import { useStore } from 'App/mstore';
import { toast } from 'react-toastify';
import { t } from 'i18next';
function OptOut() {
const { userStore } = useStore();
@ -13,10 +14,10 @@ function OptOut() {
setOptOut(!optOut);
void updateClient({ optOut: !optOut })
.then(() => {
toast('Account settings updated successfully', { type: 'success' });
toast(t('Account settings updated successfully'), { type: 'success' });
})
.catch((e) => {
toast(e.message || 'Failed to update account settings', {
toast(e.message || t('Failed to update account settings'), {
type: 'error',
});
setOptOut(optOut);

View file

@ -40,7 +40,7 @@ function ClickMapRagePicker() {
return (
<div className="mr-4 flex items-center gap-2 cursor-pointer">
<Checkbox onChange={onToggle} label="Include rage clicks" />
<Checkbox onChange={onToggle} label={t('Include rage clicks')} />
<Button size="small" onClick={refreshHeatmapSession}>
{t('Get new session')}

View file

@ -1496,5 +1496,7 @@
"Bad Requests": "Bad Requests",
"Tap Rage": "Tap Rage",
"More attribute": "More attribute",
"More attributes": "More attributes"
"More attributes": "More attributes",
"Account settings updated successfully": "Account settings updated successfully",
"Include rage clicks": "Include rage clicks"
}

View file

@ -1496,5 +1496,7 @@
"Bad Requests": "Solicitudes incorrectas",
"Tap Rage": "Ira al tocar",
"More attribute": "Más atributos",
"More attributes": "Más atributos"
"More attributes": "Más atributos",
"Account settings updated successfully": "Configuración de la cuenta actualizada correctamente",
"Include rage clicks": "Incluir clics de ira"
}

View file

@ -1496,5 +1496,7 @@
"Bad Requests": "Mauvaises requêtes",
"Tap Rage": "Rage au tap",
"More attribute": "Plus d'attributs",
"More attributes": "Plus d'attributs"
"More attributes": "Plus d'attributs",
"Account settings updated successfully": "Paramètres du compte mis à jour avec succès",
"Include rage clicks": "Inclure les clics de rage"
}

View file

@ -1496,5 +1496,7 @@
"Bad Requests": "Неудачные запросы",
"Tap Rage": "Невыносимые тапы",
"More attribute": "Еще атрибут",
"More attributes": "Еще атрибуты"
"More attributes": "Еще атрибуты",
"Account settings updated successfully": "Настройки аккаунта успешно обновлены",
"Include rage clicks": "Включить невыносимые клики"
}

View file

@ -1496,5 +1496,7 @@
"Bad Requests": "错误请求",
"Tap Rage": "点击狂怒",
"More attributes": "更多属性",
"More attribute": "更多属性"
"More attribute": "更多属性",
"Account settings updated successfully": "帐户设置已成功更新",
"Include rage clicks": "包括点击狂怒"
}