Skip to content

Commit

Permalink
fix langauge list
Browse files Browse the repository at this point in the history
  • Loading branch information
m2049r committed Oct 22, 2022
1 parent 3610781 commit ce08492
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ public static ArrayList<Locale> getAvailableLocales(Context context) {
String[] availableLocales = context.getString(R.string.available_locales).split(",");

for (String localeName : availableLocales) {
locales.add(Locale.forLanguageTag(localeName));
if (!localeName.startsWith("night") && !localeName.matches("v[0-9]+"))
locales.add(Locale.forLanguageTag(localeName));
}

return locales;
Expand Down

0 comments on commit ce08492

Please sign in to comment.