String translate(String key) { String langCode = currentLocale.languageCode; return translations[langCode]?[key] ?? translations[langCode]?[key.toLowerCase()] ?? key; }