From 627a3edfc48cc6509ce69830866425ee68423f3d Mon Sep 17 00:00:00 2001 From: Vasile Popescu Date: Thu, 11 Dec 2025 14:18:17 +0100 Subject: [PATCH 01/15] Add the untranslated locale to the global list of languages --- front_end/src/components/language_menu.tsx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/front_end/src/components/language_menu.tsx b/front_end/src/components/language_menu.tsx index c241db2496..c8f8465d27 100644 --- a/front_end/src/components/language_menu.tsx +++ b/front_end/src/components/language_menu.tsx @@ -38,18 +38,16 @@ export const APP_LANGUAGES = [ name: "繁體中文", locale: "zh-TW", }, + { + name: "Untranslated", + locale: "original", // Check the translations documentation why this is the case + }, ]; const LanguageMenu: FC = ({ className }) => { const locale = useLocale(); - const languageMenuItems = [ - ...APP_LANGUAGES, - { - name: "Untranslated", - locale: "original", // Check the translations documentation why this is the case - }, - ]; + const languageMenuItems =APP_LANGUAGES; return ( From b800373f3da9d041a1c29668dc23a055756001f6 Mon Sep 17 00:00:00 2001 From: Vasile Popescu Date: Thu, 4 Dec 2025 11:58:34 +0100 Subject: [PATCH 02/15] Add a new instruction for Claude --- Claude.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Claude.md b/Claude.md index b64d4a2a9a..fc33845865 100644 --- a/Claude.md +++ b/Claude.md @@ -10,6 +10,7 @@ - Check the existing code style and follow it - Destructure imports when possible (eg. import { foo } from 'bar') - Do not add excesive comments. Add comments only to document what would be surprising to a senior engineer. +- For any frontend content visible to the user, use the translation mechanism used across the whole frontend.`const t = useTranslations()` and then `t("stringKey")` while addingt the "stringKey" to all the correspondong language files (en.json, es.json, etc). # Workflow - Be sure to run the linter, type checker, formatter and try to build the code when you’re done making a series of code changes. \ No newline at end of file From 54781d5aeb54bf2427bc1b5254614235012a6757 Mon Sep 17 00:00:00 2001 From: Vasile Popescu Date: Mon, 1 Dec 2025 13:02:59 +0100 Subject: [PATCH 03/15] Use the same header logo for all screen sizes --- .../headers/components/navbar_logo.tsx | 20 +++---------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/front_end/src/app/(main)/components/headers/components/navbar_logo.tsx b/front_end/src/app/(main)/components/headers/components/navbar_logo.tsx index 890c38a9ee..e464b4c90e 100644 --- a/front_end/src/app/(main)/components/headers/components/navbar_logo.tsx +++ b/front_end/src/app/(main)/components/headers/components/navbar_logo.tsx @@ -13,24 +13,10 @@ const NavbarLogo: FC = () => { return ( -

- - - - - - +

+ Date: Mon, 1 Dec 2025 13:24:49 +0100 Subject: [PATCH 04/15] Change the order of the navigation links in the global header This is part of the new homepage design --- .../headers/components/navbar_links.tsx | 2 +- .../headers/components/navbar_logo.tsx | 8 +++- .../app/(main)/components/headers/header.tsx | 46 ++++++++++--------- 3 files changed, 32 insertions(+), 24 deletions(-) diff --git a/front_end/src/app/(main)/components/headers/components/navbar_links.tsx b/front_end/src/app/(main)/components/headers/components/navbar_links.tsx index 49d744747c..fa179e9467 100644 --- a/front_end/src/app/(main)/components/headers/components/navbar_links.tsx +++ b/front_end/src/app/(main)/components/headers/components/navbar_links.tsx @@ -12,7 +12,7 @@ const NavbarLinks: FC = ({ links, className }) => { return (