Skip to content

Commit 0c7f0ae

Browse files
Merge pull request #124 from rocky-linux/develop
Release - Localization Updates and Suppress Hydration Warning Implementation
2 parents c9e2582 + 1064b6b commit 0c7f0ae

37 files changed

+427
-414
lines changed

app/[locale]/components/header/DarkModeToggle.tsx

+9
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ export interface DarkModeToggleProps {
1212

1313
const DarkModeToggle = ({ srText }: DarkModeToggleProps) => {
1414
const { theme, setTheme } = useTheme();
15+
const [mounted, setMounted] = React.useState(false);
16+
17+
React.useEffect(() => {
18+
setMounted(true);
19+
}, []);
20+
21+
if (!mounted) {
22+
return null;
23+
}
1524

1625
const toggleTheme = () => {
1726
if (theme === "light") {

app/[locale]/layout.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ export default async function RootLayout({
5656
if (!availableLanguages.includes(locale as any)) notFound();
5757

5858
return (
59-
<html lang={locale}>
59+
<html
60+
lang={locale}
61+
suppressHydrationWarning
62+
>
6063
<head>
6164
<PlausibleProvider
6265
domain="rockylinux.org"
@@ -71,6 +74,7 @@ export default async function RootLayout({
7174
/>
7275
</head>
7376
<body
77+
suppressHydrationWarning
7478
className={cn(
7579
"min-h-screen bg-background font-sans antialiased mx-auto px-4 xl:px-0",
7680
fontSans.variable,

messages/af-ZA.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"contributeName": "Contribute",
2020
"openMainMenu": "Open Main Menu",
2121
"about": {
22-
"about": "About Rocky Linux",
22+
"about": "Over Rocky Linux",
2323
"charter": "Community Charter",
2424
"wiki": "Project Wiki",
2525
"sponsors": "Sponsors",
@@ -70,7 +70,7 @@
7070
"home": {
7171
"hero": {
7272
"title": "Enterprise Linux, die <span>gemeenskap manier.</span>",
73-
"description": "Rocky Linux is an open-source enterprise operating system designed to be 100% bug-for-bug compatible with Red Hat Enterprise Linux®. It is under intensive development by the community.",
73+
"description": "Rocky Linux is an open-source enterprise operating system designed to be 100% bug-for-bug compatible with Red Hat Enterprise Linux®. Rocky Linux is under intensive development by the community.",
7474
"migrate": "Migreer",
7575
"dpg": "A Registered Digital Public Good"
7676
},

messages/ar-SA.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"home": {
7171
"hero": {
7272
"title": "Enterprise Linux, the <span>community way.</span>",
73-
"description": "Rocky Linux is an open-source enterprise operating system designed to be 100% bug-for-bug compatible with Red Hat Enterprise Linux®. It is under intensive development by the community.",
73+
"description": "Rocky Linux is an open-source enterprise operating system designed to be 100% bug-for-bug compatible with Red Hat Enterprise Linux®. Rocky Linux is under intensive development by the community.",
7474
"migrate": "Migrate",
7575
"dpg": "A Registered Digital Public Good"
7676
},

messages/ca-ES.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"mailing": "Mailing Lists",
3535
"mattermost": "Mattermost",
3636
"irc": "IRC",
37-
"calendar": "Calendar"
37+
"calendar": "Calendari"
3838
},
3939
"support": {
4040
"docs": "Documentation",
@@ -70,7 +70,7 @@
7070
"home": {
7171
"hero": {
7272
"title": "Enterprise Linux, the <span>community way.</span>",
73-
"description": "Rocky Linux is an open-source enterprise operating system designed to be 100% bug-for-bug compatible with Red Hat Enterprise Linux®. It is under intensive development by the community.",
73+
"description": "Rocky Linux is an open-source enterprise operating system designed to be 100% bug-for-bug compatible with Red Hat Enterprise Linux®. Rocky Linux is under intensive development by the community.",
7474
"migrate": "Migrate",
7575
"dpg": "A Registered Digital Public Good"
7676
},

messages/cs-CZ.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
"contributeName": "Contribute",
2020
"openMainMenu": "Open Main Menu",
2121
"about": {
22-
"about": "About Rocky Linux",
23-
"charter": "Community Charter",
22+
"about": "O Rocky Linux",
23+
"charter": "Komunitní charta",
2424
"wiki": "Project Wiki",
25-
"sponsors": "Sponsors",
25+
"sponsors": "Sponzoři",
2626
"partners": "Partners"
2727
},
2828
"resources": {
@@ -70,7 +70,7 @@
7070
"home": {
7171
"hero": {
7272
"title": "Enterprise Linux, the <span>community way.</span>",
73-
"description": "Rocky Linux is an open-source enterprise operating system designed to be 100% bug-for-bug compatible with Red Hat Enterprise Linux®. It is under intensive development by the community.",
73+
"description": "Rocky Linux is an open-source enterprise operating system designed to be 100% bug-for-bug compatible with Red Hat Enterprise Linux®. Rocky Linux is under intensive development by the community.",
7474
"migrate": "Migrate",
7575
"dpg": "A Registered Digital Public Good"
7676
},
@@ -138,7 +138,7 @@
138138
}
139139
},
140140
"sponsors": {
141-
"title": "Sponsors",
141+
"title": "Sponzoři",
142142
"description": "The Rocky Linux project is made possible by the generous support of our sponsors. We are grateful for their contributions to the project.",
143143
"learnMore": "Learn More",
144144
"foundingSponsor": "Founding Sponsor"

messages/da-DK.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@
3434
"mailing": "Mailing Lists",
3535
"mattermost": "Mattermost",
3636
"irc": "IRC",
37-
"calendar": "Calendar"
37+
"calendar": "Kalender"
3838
},
3939
"support": {
40-
"docs": "Documentation",
40+
"docs": "Dokumentation",
4141
"submitBug": "Submit Bug",
4242
"supportProviders": "Commercial Support"
4343
},
@@ -70,7 +70,7 @@
7070
"home": {
7171
"hero": {
7272
"title": "Enterprise Linux, the <span>community way.</span>",
73-
"description": "Rocky Linux is an open-source enterprise operating system designed to be 100% bug-for-bug compatible with Red Hat Enterprise Linux®. It is under intensive development by the community.",
73+
"description": "Rocky Linux is an open-source enterprise operating system designed to be 100% bug-for-bug compatible with Red Hat Enterprise Linux®. Rocky Linux is under intensive development by the community.",
7474
"migrate": "Migrate",
7575
"dpg": "A Registered Digital Public Good"
7676
},
@@ -304,7 +304,7 @@
304304
"description": "Join our <link1>Mattermost chat</link1> and introduce yourself in one of our many SIG channels. Let us know what you're interested in working on, and we'll find something you can help out with! If you're interested in proposing a new SIG, please see our <link2>wiki page</link2> on the topic."
305305
},
306306
"docs": {
307-
"title": "Documentation",
307+
"title": "Dokumentation",
308308
"description": "Join our <link1>Mattermost chat</link1> and introduce yourself in the <link2>~Documentation</link2> channel. Make sure to review the contributing guide available on our <link3>README</link3>."
309309
}
310310
}

messages/de-DE.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"contributeName": "Mitwirken",
2020
"openMainMenu": "Hauptmenü öffnen",
2121
"about": {
22-
"about": "Über Rocky Linux",
22+
"about": "Ueber Rocky Linux",
2323
"charter": "Community-Charta",
2424
"wiki": "Projekt-Wiki",
2525
"sponsors": "Sponsoren",
@@ -70,7 +70,7 @@
7070
"home": {
7171
"hero": {
7272
"title": "Enterprise Linux, der <span>Community-Weg.</span>",
73-
"description": "Rocky Linux ist ein Open-Source Enterprise Betriebssystem, das entwickelt wurde, um 100% Bug-für-Bug kompatibel mit Red Hat Enterprise Linux® zu sein. Es befindet sich in intensiver Entwicklung durch die Community.",
73+
"description": "Rocky Linux ist ein Open-Source Enterprise Betriebssystem, das entwickelt wurde, um 100% Bug-für-Bug kompatibel mit Red Hat Enterprise Linux® zu sein. Rocky Linux befindet sich in intensiver Entwicklung durch die Community.",
7474
"migrate": "Migration",
7575
"dpg": "Registered Digital Public Good – Ein registriertes digitales öffentliches Gut"
7676
},

messages/el-GR.json

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
{
22
"global": {
33
"name": "Rocky Linux",
4-
"download": "Download",
4+
"download": "Λήψη",
55
"notFound": {
6-
"title": "Not Found",
7-
"description": "The page you are looking for does not exist. Please check the URL and try again."
6+
"title": "Δεν Βρέθηκε",
7+
"description": "Η σελίδα που ψάχνετε δεν υπάρχει. Ελέγξτε τη διεύθυνση URL και προσπαθήστε ξανά."
88
},
9-
"close": "Close"
9+
"close": "Κλείσιμο"
1010
},
1111
"header": {
1212
"toggleTheme": "Toggle Theme",
1313
"nav": {
14-
"newsName": "News",
14+
"newsName": "Νέα",
1515
"aboutName": "About",
1616
"resourcesName": "Resources",
17-
"communityName": "Community",
18-
"supportName": "Help",
17+
"communityName": "Κοινότητα",
18+
"supportName": "Βοήθεια",
1919
"contributeName": "Contribute",
2020
"openMainMenu": "Open Main Menu",
2121
"about": {
@@ -44,7 +44,7 @@
4444
"contribute": {
4545
"contribute": "Contributing Guide",
4646
"shop": "Shop",
47-
"donate": "Donate"
47+
"donate": "Δωρεά"
4848
}
4949
}
5050
},
@@ -70,7 +70,7 @@
7070
"home": {
7171
"hero": {
7272
"title": "Enterprise Linux, the <span>community way.</span>",
73-
"description": "Rocky Linux is an open-source enterprise operating system designed to be 100% bug-for-bug compatible with Red Hat Enterprise Linux®. It is under intensive development by the community.",
73+
"description": "Rocky Linux is an open-source enterprise operating system designed to be 100% bug-for-bug compatible with Red Hat Enterprise Linux®. Rocky Linux is under intensive development by the community.",
7474
"migrate": "Migrate",
7575
"dpg": "A Registered Digital Public Good"
7676
},
@@ -100,10 +100,10 @@
100100
}
101101
},
102102
"news": {
103-
"title": "News",
103+
"title": "Νέα",
104104
"description": "Stay up to date with the latest news and updates from the Rocky Linux community.",
105105
"notFound": {
106-
"title": "Not Found",
106+
"title": "Δεν Βρέθηκε",
107107
"description": "The news post you are looking for does not exist. You can find all our news posts on the <newsLink>news page</newsLink>."
108108
}
109109
},
@@ -158,7 +158,7 @@
158158
"description": "Purchase some swag! All of our vendors ship globally."
159159
},
160160
"download": {
161-
"title": "Download",
161+
"title": "Λήψη",
162162
"description": "Download the latest Rocky Linux versions here.",
163163
"tabs": {
164164
"x86_64": "AMD/Intel (x86_64)",
@@ -198,11 +198,11 @@
198198
"x86_64": {
199199
"r9": {
200200
"versionName": "Rocky Linux 9",
201-
"plannedEol": "May 31 2032"
201+
"plannedEol": "2032-05-31"
202202
},
203203
"r8": {
204204
"versionName": "Rocky Linux 8",
205-
"plannedEol": "May 31 2029"
205+
"plannedEol": "2029-05-31"
206206
}
207207
}
208208
},
@@ -249,7 +249,7 @@
249249
},
250250
"rpiImages": {
251251
"title": "Raspberry Pi Images",
252-
"download": "Download",
252+
"download": "Λήψη",
253253
"readMe": "README"
254254
}
255255
},

messages/es-ES.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@
1919
"contributeName": "Contribute",
2020
"openMainMenu": "Open Main Menu",
2121
"about": {
22-
"about": "About Rocky Linux",
22+
"about": "Acerca de Rocky Linux",
2323
"charter": "Community Charter",
24-
"wiki": "Project Wiki",
24+
"wiki": "Wiki del Proyecto",
2525
"sponsors": "Sponsors",
2626
"partners": "Partners"
2727
},
2828
"resources": {
29-
"gpgKeyInfo": "GPG Key Info"
29+
"gpgKeyInfo": "Información de llave GPG"
3030
},
3131
"community": {
32-
"coc": "Code of Conduct",
32+
"coc": "Código de Conducta",
3333
"forums": "Forums",
3434
"mailing": "Mailing Lists",
3535
"mattermost": "Mattermost",
@@ -70,7 +70,7 @@
7070
"home": {
7171
"hero": {
7272
"title": "Enterprise Linux, the <span>community way.</span>",
73-
"description": "Rocky Linux is an open-source enterprise operating system designed to be 100% bug-for-bug compatible with Red Hat Enterprise Linux®. It is under intensive development by the community.",
73+
"description": "Rocky Linux is an open-source enterprise operating system designed to be 100% bug-for-bug compatible with Red Hat Enterprise Linux®. Rocky Linux is under intensive development by the community.",
7474
"migrate": "Migrate",
7575
"dpg": "A Registered Digital Public Good"
7676
},

messages/fa-IR.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"home": {
7171
"hero": {
7272
"title": "Enterprise Linux, the <span>community way.</span>",
73-
"description": "Rocky Linux is an open-source enterprise operating system designed to be 100% bug-for-bug compatible with Red Hat Enterprise Linux®. It is under intensive development by the community.",
73+
"description": "Rocky Linux is an open-source enterprise operating system designed to be 100% bug-for-bug compatible with Red Hat Enterprise Linux®. Rocky Linux is under intensive development by the community.",
7474
"migrate": "Migrate",
7575
"dpg": "A Registered Digital Public Good"
7676
},

messages/fi-FI.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@
3434
"mailing": "Mailing Lists",
3535
"mattermost": "Mattermost",
3636
"irc": "IRC",
37-
"calendar": "Calendar"
37+
"calendar": "Kalenteri"
3838
},
3939
"support": {
40-
"docs": "Documentation",
40+
"docs": "Dokumentaatio",
4141
"submitBug": "Submit Bug",
4242
"supportProviders": "Commercial Support"
4343
},
@@ -70,7 +70,7 @@
7070
"home": {
7171
"hero": {
7272
"title": "Enterprise Linux, the <span>community way.</span>",
73-
"description": "Rocky Linux is an open-source enterprise operating system designed to be 100% bug-for-bug compatible with Red Hat Enterprise Linux®. It is under intensive development by the community.",
73+
"description": "Rocky Linux is an open-source enterprise operating system designed to be 100% bug-for-bug compatible with Red Hat Enterprise Linux®. Rocky Linux is under intensive development by the community.",
7474
"migrate": "Migrate",
7575
"dpg": "A Registered Digital Public Good"
7676
},
@@ -304,7 +304,7 @@
304304
"description": "Join our <link1>Mattermost chat</link1> and introduce yourself in one of our many SIG channels. Let us know what you're interested in working on, and we'll find something you can help out with! If you're interested in proposing a new SIG, please see our <link2>wiki page</link2> on the topic."
305305
},
306306
"docs": {
307-
"title": "Documentation",
307+
"title": "Dokumentaatio",
308308
"description": "Join our <link1>Mattermost chat</link1> and introduce yourself in the <link2>~Documentation</link2> channel. Make sure to review the contributing guide available on our <link3>README</link3>."
309309
}
310310
}

messages/fr-FR.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"contributeName": "Contribution",
2020
"openMainMenu": "Ouvrir le Menu Principal",
2121
"about": {
22-
"about": "À propos de Rocky Linux",
22+
"about": "À Propos de Rocky Linux",
2323
"charter": "Charte Communautaire",
2424
"wiki": "Wiki du Projet",
2525
"sponsors": "Sponsors",
@@ -38,7 +38,7 @@
3838
},
3939
"support": {
4040
"docs": "Documentation",
41-
"submitBug": "Soumettre un bogue",
41+
"submitBug": "Soumettre un Bogue",
4242
"supportProviders": "Support Commercial"
4343
},
4444
"contribute": {
@@ -53,7 +53,7 @@
5353
"nav": {
5454
"licensingName": "Licence",
5555
"privacyPolicyName": "Politique de Confidentialité",
56-
"TrademarksName": "Marque déposée"
56+
"TrademarksName": "Marques Déposées"
5757
},
5858
"socialNav": {
5959
"bluesky": "Bluesky",
@@ -62,15 +62,15 @@
6262
"instagram": "Instagram",
6363
"linkedin": "LinkedIn",
6464
"mastodon": "Mastodon",
65-
"threads": "Fils de discussion",
65+
"threads": "Fils de Discussion",
6666
"youtube": "YouTube"
6767
},
68-
"disclaimer": "Linux® est la marque déposée de Linus Torvalds aux États-Unis et dans d'autres pays. Red Hat Enterprise Linux, RHEL et CentOS sont des marques ou des marques déposées de Red Hat, Inc. ou de ses filiales aux États-Unis et dans d'autres pays. Nous ne sommes pas affiliés, approuvés ou sponsorisés par Red Hat, Inc."
68+
"disclaimer": "Linux® est la marque déposée de Linus Torvalds aux États-Unis et dans d'autres pays. Red Hat Enterprise Linux, RHEL et CentOS sont des marques ou des marques déposées de Red Hat, Inc. ou de ses filiales aux États-Unis et dans d'autres pays. Nous ne sommes pas affiliés, approuvés ni sponsorisés par Red Hat, Inc."
6969
},
7070
"home": {
7171
"hero": {
7272
"title": "Enterprise Linux, la <span>méthode communautaire.</span>",
73-
"description": "Rocky Linux est un système d'exploitation d'entreprise Open Source conçu pour être 100 % compatible bug pour bug avec Red Hat Enterprise Linux®. Il fait l'objet d'un développement intensif de la part de la communauté.",
73+
"description": "Rocky Linux est un système d'exploitation d'entreprise Open Source conçu pour être 100 % compatible bogue pour bogue avec Red Hat Enterprise Linux®. Rocky Linux fait l'objet d'un développement intensif de la part de la communauté.",
7474
"migrate": "Migration",
7575
"dpg": "Registered Digital Public Good"
7676
},
@@ -117,7 +117,7 @@
117117
},
118118
"facebook": "Facebook",
119119
"linkedin": "LinkedIn",
120-
"threads": "Fils de discussion"
120+
"threads": "Fils de Discussion"
121121
},
122122
"about": {
123123
"title": "À propos",

messages/he-IL.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"home": {
7171
"hero": {
7272
"title": "Enterprise Linux, the <span>community way.</span>",
73-
"description": "Rocky Linux is an open-source enterprise operating system designed to be 100% bug-for-bug compatible with Red Hat Enterprise Linux®. It is under intensive development by the community.",
73+
"description": "Rocky Linux is an open-source enterprise operating system designed to be 100% bug-for-bug compatible with Red Hat Enterprise Linux®. Rocky Linux is under intensive development by the community.",
7474
"migrate": "Migrate",
7575
"dpg": "A Registered Digital Public Good"
7676
},

0 commit comments

Comments
 (0)