String? translateNullable(String? value) { if (value != null) { return translations[value] ?? value; } return null; }