can not display chinese traditional language in android app
<p>I have array folder:</p>

<pre><code>&lt;string-array name="language"&gt;
    &lt;item&gt;English&lt;/item&gt;
    &lt;item&gt;Chinese Simplified&lt;/item&gt;
    &lt;item&gt;Chinese Traditional&lt;/item&gt;
&lt;/string-array&gt;

&lt;string-array name="language_values"&gt;
    &lt;item&gt;en&lt;/item&gt;
    &lt;item&gt;zh&lt;/item&gt;
    &lt;item&gt;zh-rTW&lt;/item&gt;
&lt;/string-array&gt;
</code></pre>

<p>I have put folder name "values-zh-rTW" in res folder and android studio only shows zh in translation editor</p>

<p>now as per my code, I can select English and Chinese simplified but when I select Chinese traditional from settings English is displayed do not why?</p>

<p>here is my code to get language and set language:</p>

<pre><code>private String getLanguage(Context c, String defaultLanguage) {
        SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(c);
        return preferences.getString("language", defaultLanguage);
    }

    @SuppressWarnings("deprecation")
    public void setLanguage(Context context, String languageCode) {
        Locale locale = new Locale(languageCode);
        Locale.setDefault(locale);
        Configuration config = new Configuration();

        if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.N) {
            config.setLocale(locale);
        } else {
            config.locale = locale;
        }

        context.getApplicationContext().getResources().updateConfiguration(config, context.getResources().getDisplayMetrics());

        SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context);
        SharedPreferences.Editor editor = preferences.edit();
        editor.putString("language", languageCode);
        editor.apply();

    }
</code></pre>