diff --git a/TIPS.md b/TIPS.md index 9f00289..e98cc0a 100644 --- a/TIPS.md +++ b/TIPS.md @@ -32,3 +32,4 @@ Going forward, new tips are pushed automatically by the `mc_survival_tips.py` cr - [Tip #37](tips/2026-07-18-037-search-fuzzy-search-for-items-recipes.md) (2026-07-18) — **search**: Fuzzy-Search for items & recipes - [Tip #38](tips/2026-07-19-038-admin-audit-log-who-changed-what.md) (2026-07-19) — **admin**: Audit-Log: who changed what - [Tip #39](tips/2026-07-20-039-performance-native-lazy-loading-for-item-icons.md) (2026-07-20) — **performance**: Native lazy-loading for item icons +- [Tip #40](tips/2026-07-21-040-i18n-add-english-ui-translation.md) (2026-07-21) — **i18n**: Add English UI translation diff --git a/tips/2026-07-21-040-i18n-add-english-ui-translation.md b/tips/2026-07-21-040-i18n-add-english-ui-translation.md new file mode 100644 index 0000000..c21ef59 --- /dev/null +++ b/tips/2026-07-21-040-i18n-add-english-ui-translation.md @@ -0,0 +1,22 @@ +--- +tip_number: 40 +date: 2026-07-21 +category: i18n +status: pending +--- + +# Tip #40 — Add English UI translation + +**Date:** 2026-07-21 +**Category:** i18n +**Source:** MC-Survival Wiki Daily Tip (cron @ 18:00 MESZ) + +## Add English UI translation + +Mirror the existing German translation files into an en.json with the same structure, then add a locale switcher in the header so non-German visitors can switch languages. It solves the immediate bounce problem: non-German-speaking players and potential contributors hit the wiki and leave within seconds when every nav label is in a language they do not read. The signal is audience composition — the GitHub repo and the server's English-speaking community are both larger than the German-only UI suggests. Translating only the most-seen strings (nav, search, errors, buttons) is enough to flip the bounce rate; the long tail can be translated later or fall back to German. + +## Implementation tips + +1. Create en.json mirroring the structure of the existing de.json (or whatever the source is in i18n.ts). +2. Translate the most-seen UI strings first: nav, search, error messages, button labels — not the long-tail. +3. Add a locale switcher in the header (already a common shadcn pattern).