diff --git a/README.md b/README.md index 9291f4f6b..446c82708 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,8 @@ Localization goes beyond simple translation — it adapts content for specific l If you are not yourself developing/changing the l10n system, you can let it run automatically. +If you make changes to translated components (e.g. footer, navbar), update the `messages` json files accordingly. + ## Quick Start ```bash diff --git a/messages/en.json b/messages/en.json index e02777742..20db6e6be 100644 --- a/messages/en.json +++ b/messages/en.json @@ -51,6 +51,7 @@ "simpletoc_heading": "Table of contents", "footer_join": "Join PauseAI >", "footer_info": "Info", + "footer_info_about": "About", "footer_info_faq": "FAQ", "footer_info_proposal": "Proposal", "footer_info_learn": "Learn", diff --git a/src/routes/about/+page.svelte b/src/routes/about/+page.svelte index 7a2f848c5..04bcab5b4 100644 --- a/src/routes/about/+page.svelte +++ b/src/routes/about/+page.svelte @@ -9,7 +9,21 @@ const peopleGroups = data.people as Record - const groupKeys = Object.keys(peopleGroups) + // Define the manual order for the groups + const groupOrder = [ + 'Leadership Team', + 'National Chapters', + 'National Chapter Leads', + 'Global Board' + ] + + // Get all group keys and sort them according to the manual order + const allGroupKeys = Object.keys(peopleGroups) + const groupKeys = groupOrder.filter((group) => allGroupKeys.includes(group)) + + // Add any groups that weren't in the manual order (in case new ones appear) + const remainingGroups = allGroupKeys.filter((group) => !groupOrder.includes(group)) + groupKeys.push(...remainingGroups) const { title, description, date } = meta diff --git a/src/routes/footer.svelte b/src/routes/footer.svelte index 2e7712501..ce29037d3 100644 --- a/src/routes/footer.svelte +++ b/src/routes/footer.svelte @@ -18,6 +18,7 @@