                .commit();
    }

    public static String getLanguage(Context context) {
        return context.getSharedPreferences(NAME, Context.MODE_PRIVATE)
                .getString(VALUE_LANG, "en");
    }

    public static boolean setLanguage(Context context, String code) {
        return context.getSharedPreferences(NAME, Context.MODE_PRIVATE)
                .edit()
                .putString(VALUE_LANG, code)
                .commit();
    }