pub fn t(app: &AppState, key: &str) -> StringExpand description
What: Get a translation for a given key from AppState.
Inputs:
app:AppStatecontaining translation mapskey: Dot-notation key (e.g., “app.titles.search”)
Output:
- Translated string, or the key itself if translation not found
Details:
- Uses translations from
AppState - Falls back to English if translation missing