fix localesg

This commit is contained in:
Jamie Curnow 2023-02-28 21:18:11 +10:00
parent fc2df47753
commit 3ea9f805f4
No known key found for this signature in database
GPG Key ID: FFBB624C43388E9E
5 changed files with 115 additions and 11 deletions

View File

@ -5,12 +5,21 @@
"access-lists.title": {
"defaultMessage": "Zugriffslisten"
},
"action.delete": {
"defaultMessage": "Delete"
},
"action.download": {
"defaultMessage": "Download"
},
"action.edit": {
"defaultMessage": "Bearbeiten"
},
"action.nginx-config": {
"defaultMessage": "View Nginx Config"
},
"action.renew": {
"defaultMessage": "Renew"
},
"action.set-password": {
"defaultMessage": "Passwort festlegen"
},
@ -38,6 +47,9 @@
"certificate-authorities.title": {
"defaultMessage": "Zertifizierungsstellen"
},
"certificate-authority": {
"defaultMessage": "Certificate Authority"
},
"certificate-authority.acmesh-server": {
"defaultMessage": "ACME-Server"
},
@ -128,14 +140,23 @@
"disabled": {
"defaultMessage": "Deaktiviert"
},
"dns-provider": {
"defaultMessage": "DNS Provider"
},
"dns-provider.acmesh-name": {
"defaultMessage": "Acme.sh-Name"
},
"dns-provider.create": {
"defaultMessage": "Erstellen Sie einen DNS-Anbieter"
},
"name": {
"defaultMessage": "Name"
"dns-providers.empty": {
"defaultMessage": "No DNS Providers - Create one first"
},
"domain_names": {
"defaultMessage": "Domain Names"
},
"domain_names.max": {
"defaultMessage": "{count} domain names maximum"
},
"dns-providers.title": {
"defaultMessage": "DNS-Anbieter"
@ -161,6 +182,9 @@
"error.invalid-login-credentials": {
"defaultMessage": "Ungültige Login-Details"
},
"error.provider_not_found": {
"defaultMessage": "Provider not found"
},
"error.request-failed-validation": {
"defaultMessage": "Back-End-Validierung fehlgeschlagen"
},
@ -248,12 +272,18 @@
"https-only": {
"defaultMessage": "Nur HTTPS"
},
"is-ecc": {
"defaultMessage": "ECC Certificate"
},
"lets-go": {
"defaultMessage": "Lass uns gehen"
},
"login.login": {
"defaultMessage": "Einloggen"
},
"name": {
"defaultMessage": "Name"
},
"navigation.close": {
"defaultMessage": "Navigation schließen"
},
@ -359,6 +389,9 @@
"type.http": {
"defaultMessage": "HTTP"
},
"type.mkcert": {
"defaultMessage": "MKCert"
},
"type.proxy": {
"defaultMessage": "Proxy Host"
},

View File

@ -242,12 +242,21 @@
"acmesh.dns_zonomi": {
"defaultMessage": "Zonomi"
},
"action.delete": {
"defaultMessage": "Delete"
},
"action.download": {
"defaultMessage": "Download"
},
"action.edit": {
"defaultMessage": "Edit"
},
"action.nginx-config": {
"defaultMessage": "View Nginx Config"
},
"action.renew": {
"defaultMessage": "Renew"
},
"action.set-password": {
"defaultMessage": "Set Password"
},
@ -416,7 +425,7 @@
"dns-provider.create": {
"defaultMessage": "Create DNS Provider"
},
"dns-providers-empty": {
"dns-providers.empty": {
"defaultMessage": "No DNS Providers - Create one first"
},
"domain_names": {
@ -425,9 +434,6 @@
"domain_names.max": {
"defaultMessage": "{count} domain names maximum"
},
"name": {
"defaultMessage": "Name"
},
"dns-providers.title": {
"defaultMessage": "DNS Providers"
},
@ -452,6 +458,9 @@
"error.invalid-login-credentials": {
"defaultMessage": "Invalid login credentials"
},
"error.provider_not_found": {
"defaultMessage": "Provider not found"
},
"error.request-failed-validation": {
"defaultMessage": "Failed backend validation"
},
@ -548,6 +557,9 @@
"login.login": {
"defaultMessage": "Sign in"
},
"name": {
"defaultMessage": "Name"
},
"navigation.close": {
"defaultMessage": "Close navigation"
},

View File

@ -5,12 +5,21 @@
"access-lists.title": {
"defaultMessage": "دسترسی به لیست ها"
},
"action.delete": {
"defaultMessage": "Delete"
},
"action.download": {
"defaultMessage": "Download"
},
"action.edit": {
"defaultMessage": "ویرایش کنید"
},
"action.nginx-config": {
"defaultMessage": "View Nginx Config"
},
"action.renew": {
"defaultMessage": "Renew"
},
"action.set-password": {
"defaultMessage": "قراردادن رمز عبور"
},
@ -38,6 +47,9 @@
"certificate-authorities.title": {
"defaultMessage": "مقامات صدور گواهینامه"
},
"certificate-authority": {
"defaultMessage": "Certificate Authority"
},
"certificate-authority.acmesh-server": {
"defaultMessage": "سرور ACME"
},
@ -128,14 +140,23 @@
"disabled": {
"defaultMessage": "معلول"
},
"dns-provider": {
"defaultMessage": "DNS Provider"
},
"dns-provider.acmesh-name": {
"defaultMessage": "نام Acme.sh"
},
"dns-provider.create": {
"defaultMessage": "ارائه دهنده DNS ایجاد کنید"
},
"name": {
"defaultMessage": "نام"
"dns-providers.empty": {
"defaultMessage": "No DNS Providers - Create one first"
},
"domain_names": {
"defaultMessage": "Domain Names"
},
"domain_names.max": {
"defaultMessage": "{count} domain names maximum"
},
"dns-providers.title": {
"defaultMessage": "ارائه دهندگان DNS"
@ -161,6 +182,9 @@
"error.invalid-login-credentials": {
"defaultMessage": "اعتبار ورود نامعتبر است"
},
"error.provider_not_found": {
"defaultMessage": "Provider not found"
},
"error.request-failed-validation": {
"defaultMessage": "اعتبار سنجی پشتیبان ناموفق بود"
},
@ -254,9 +278,15 @@
"lets-go": {
"defaultMessage": "بیا بریم"
},
"is-ecc": {
"defaultMessage": "ECC Certificate"
},
"login.login": {
"defaultMessage": "ورود"
},
"name": {
"defaultMessage": "نام"
},
"navigation.close": {
"defaultMessage": "بستن ناوبری"
},
@ -362,6 +392,9 @@
"type.http": {
"defaultMessage": "HTTP"
},
"type.mkcert": {
"defaultMessage": "MKCert"
},
"type.proxy": {
"defaultMessage": "Proxy Host"
},

View File

@ -60,7 +60,7 @@ function DNSProviderField() {
<FormErrorMessage>
{!isLoading && !data?.total
? intl.formatMessage({
id: "dns-providers-empty",
id: "dns-providers.empty",
})
: form.errors[fieldName]}
</FormErrorMessage>

View File

@ -16,7 +16,7 @@ import {
} from "components";
import { intl } from "locale";
import { CertificateEditModal } from "modals";
import { FiEdit } from "react-icons/fi";
import { FiDownload, FiEdit, FiRefreshCw, FiTrash2 } from "react-icons/fi";
import { useSortBy, useFilters, useTable, usePagination } from "react-table";
export interface TableProps {
@ -76,8 +76,34 @@ function Table({
title: intl.formatMessage({
id: "action.edit",
}),
onClick: (e: any, { id }: any) => setEditId(id),
onClick: (e: any, { id }: any) => alert(id),
icon: <FiEdit />,
disabled: (data: any) =>
data.type === "dns" || data.type === "http",
},
{
title: intl.formatMessage({
id: "action.renew",
}),
onClick: (e: any, { id }: any) => alert(id),
icon: <FiRefreshCw />,
disabled: (data: any) =>
data.type !== "dns" && data.type !== "http",
},
{
title: intl.formatMessage({
id: "action.download",
}),
onClick: (e: any, { id }: any) => alert(id),
icon: <FiDownload />,
disabled: (data: any) => data.isReadonly,
},
{
title: intl.formatMessage({
id: "action.delete",
}),
onClick: (e: any, { id }: any) => alert(id),
icon: <FiTrash2 />,
disabled: (data: any) => data.isReadonly,
},
]),