refactor(i18n): simplify
This commit is contained in:
parent
a08744dee3
commit
2b71bd18eb
3 changed files with 3 additions and 4 deletions
|
@ -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)
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue