package com.kickstarter.libs.utils;

import android.support.annotation.NonNull;

import com.kickstarter.models.Location;

import java.util.Locale;

public final class I18nUtils {
  private I18nUtils() {}

  /**
   * Gets the language set on the device, or if none is found, just return "en" for english.
   *
   * This value can be changed while an app is running, so the value shouldn't be cached.
   */
  public static @NonNull String language() {
    final String language = Locale.getDefault().getLanguage();
    return language.isEmpty() ? "en" : language;
  }

  public static boolean isCountryGermany(final @NonNull Location location) {
    final String country = location.country();
    if (country != null) {
      return location.country().equals("DE");
    }
    return false;
  }
}

@@ -645,146 +645,69 @@
     
-final String country = location.country();%0A    if (country != null) %7B%0A      return location.country().equals(%22DE%22);%0A    %7D%0A    return false
+return Locale.GERMANY.getCountry().equals(location.country())
 ;%0A  

simplify isCountryGermany check in I18nUtils