NutsNews Settings Language Polish Update
Section titled “NutsNews Settings Language Polish Update”This is a small follow-up to the settings menu update.
What changed
Section titled “What changed”- Makes the language flags larger and gives the flag badge a true circular size so 🇺🇸 and 🇫🇷 fill the circle better.
- Adds a client-side
HeroTaglinecomponent for the home banner tagline. - Translates the banner tagline based on the selected site language:
- English:
Positive News, Simplified - French:
Actualités positives, simplifiées
- English:
- Keeps the language selection stored in the existing
nutsnews.web.languagelocalStorage key. - Keeps future-language support centralized through
web/lib/languages.ts.
Files changed
Section titled “Files changed”web/app/components/HeroTagline.tsxweb/app/components/ThemeSwitcher.tsxweb/app/globals.cssweb/app/page.tsxweb/lib/languages.ts
Validation
Section titled “Validation”Run from web:
npm run lintnpx tsc --noEmitnpm run buildManual test:
- Open the home page.
- Open Settings → Language.
- Confirm the flags are larger inside the circular badges.
- Choose Français.
- Confirm the banner tagline changes to
Actualités positives, simplifiées. - Switch back to English and confirm it returns to
Positive News, Simplified.
