We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06b67ed commit a3a0614Copy full SHA for a3a0614
frontend/src/components/Table/Formatter/CertificateFormatter.tsx
@@ -5,5 +5,14 @@ interface Props {
5
certificate?: Certificate;
6
}
7
export function CertificateFormatter({ certificate }: Props) {
8
- return <T id={certificate ? "lets-encrypt" : "http-only"} />;
+ let translation = "http-only";
9
+ if (certificate) {
10
+ translation = certificate.provider;
11
+ if (translation === "letsencrypt") {
12
+ translation = "lets-encrypt";
13
+ } else if (translation === "other") {
14
+ translation = "certificates.custom";
15
+ }
16
17
+ return <T id={translation} />;
18
0 commit comments