Skip to content

Commit d71c3f5

Browse files
authored
Update sidebar-notice
Added translation
1 parent a63a028 commit d71c3f5

File tree

1 file changed

+29
-3
lines changed

1 file changed

+29
-3
lines changed

discord/sidebar-notice/import.css

+29-3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,32 @@
88
--notice-enable-height-adjust: true;
99
--notice-icon-join: transparent;
1010
--notice-icon-welcome: url("https://discord.com/assets/7f809e89e310c87b2e3f.svg");
11+
12+
--notice-text-heading: "";
13+
--notice-text-join: "";
14+
}
15+
16+
17+
html {
18+
&:is([lang="en-GB"]),
19+
&:is([lang="en-US"]) {
20+
--notice-text-heading: "Notice"!important;
21+
--notice-text-join: "Join Server"!important;
22+
}
23+
&:is([lang="de"]) {
24+
--notice-text-heading: "Hinweis"!important;
25+
--notice-text-join: "Server beitreten"!important;
26+
}
27+
28+
&:is([lang="es-ES"]) {
29+
--notice-text-heading: "Aviso"!important;
30+
--notice-text-join: "Unirse al servidor"!important;
31+
}
32+
33+
&:is([lang="fr"]) {
34+
--notice-text-heading: "Avis"!important;
35+
--notice-text-join: "Rejoindre le serveur"!important;
36+
}
1137
}
1238

1339
.base_a4d4d9:has(.notice_be03aa) {
@@ -82,7 +108,7 @@
82108
text-align: left;
83109

84110
&:before {
85-
content: "Notice";
111+
content: var(--notice-text-heading);
86112
font-family: var(--font-primary);
87113
font-size: 16px;
88114
font-weight: 600;
@@ -136,7 +162,7 @@
136162

137163
&:not(:has([aria-label="Loading"])):before {
138164
align-items: center;
139-
content: "Join Server";
165+
content: var(--notice-text-join);
140166
display: flex;
141167
font-family: var(--font-primary);
142168
font-size: 14px;
@@ -220,4 +246,4 @@
220246
}
221247
}
222248
}
223-
}
249+
}

0 commit comments

Comments
 (0)