refactor(i18n): simplify
This commit is contained in:
parent
a08744dee3
commit
2b71bd18eb
3 changed files with 3 additions and 4 deletions
|
@ -139,7 +139,7 @@ public class I18N {
|
|||
if (optionalProfile.isPresent()) {
|
||||
return optionalProfile.get().getLocale();
|
||||
} else {
|
||||
return Locale.FALLBACK_LOCALE;
|
||||
return Locale.ENGLISH;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue