Clean up
This commit is contained in:
parent
b94cf17d75
commit
0c6d207967
41 changed files with 1809 additions and 1204 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue