refactor(i18n): simplify

This commit is contained in:
ineanto 2023-12-18 21:11:16 +01:00
parent a08744dee3
commit 2b71bd18eb
3 changed files with 3 additions and 4 deletions

View file

@ -139,7 +139,7 @@ public class I18N {
if (optionalProfile.isPresent()) {
return optionalProfile.get().getLocale();
} else {
return Locale.FALLBACK_LOCALE;
return Locale.ENGLISH;
}
}
}

View file

@ -7,8 +7,6 @@ public enum Locale implements Serializable {
FRENCH("fr", "Français"),
CUSTOM("cm", "Server Custom");
public static final Locale FALLBACK_LOCALE = ENGLISH;
private final String code;
private transient final String name;