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

@ -4,6 +4,7 @@
[OTHER] [OTHER]
- Various optimizations and improvements. - Various optimizations and improvements.
- Internal refactoring
1.0.7-RC1: Update n°4 (13/12/23) 1.0.7-RC1: Update n°4 (13/12/23)
[OTHER] [OTHER]
@ -28,7 +29,7 @@
- Fixed a visual bug where players in survival mode were seeing themselves as having full health and hunger after disguising. - Fixed a visual bug where players in survival mode were seeing themselves as having full health and hunger after disguising.
1.0.2-RC1: Hotfix n°2 (06/12/23) 1.0.2-RC1: Hotfix n°2 (06/12/23)
[FIXES] [OTHER]
- Internal refactoring - Internal refactoring
1.0.1-RC1: Hotfix n°1 (06/12/23) 1.0.1-RC1: Hotfix n°1 (06/12/23)

View file

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

View file

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