This commit is contained in:
Andras Schmelczer 2026-04-04 17:44:44 +01:00
parent b94cf17d75
commit 0c6d207967
41 changed files with 1809 additions and 1204 deletions

View file

@ -291,3 +291,13 @@ export function tsDesc(featureName: string, englishFromServer: string): string {
if (lang === 'en') return englishFromServer;
return descriptions[lang]?.[featureName] ?? englishFromServer;
}
/**
* Translate a feature detail (the longer explanatory paragraph in the info card).
* Same pattern as tsDesc: English from server, other languages from this file.
*/
export function tsDetail(featureName: string, englishFromServer: string): string {
const lang = i18n.language;
if (lang === 'en') return englishFromServer;
return details[lang]?.[featureName] ?? englishFromServer;
}