class AppLanguage {
  static Map<String, Map<String, String>> translations = {
    'en': {
      'login': 'Login',
      'register': 'Register',
      'password': 'Password',
      'email': 'Email',
      'change_password': 'Change Password',
      'language': 'Language',

      // 🔥 tambahan
      'remember_me': 'Remember Me',
      'forgot_password': 'Forgot Password?',
      'no_account': "Don't have an account? ",
      'login_failed': 'Login Failed',
      'wrong_credential': 'Email or password is incorrect',
    },
    'id': {
      'login': 'Masuk',
      'register': 'Daftar',
      'password': 'Kata Sandi',
      'email': 'Email',
      'change_password': 'Ganti Password',
      'language': 'Bahasa',

      // 🔥 tambahan
      'remember_me': 'Ingat Saya',
      'forgot_password': 'Lupa Password?',
      'no_account': "Belum punya akun? ",
      'login_failed': 'Login Gagal',
      'wrong_credential': 'Email atau password salah',
    }
  };

  static String get(String key, String lang) {
    return translations[lang]?[key] ?? key;
  }
}
