Skip to content

Commit 77583c1

Browse files
committed
only lowercase enums
1 parent 757c083 commit 77583c1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

localization/src/main/java/de/clickism/configured/localization/LocalizationKey.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ public String[] parameters() {
5959
* @return the key as a lowercase string with '$' replaced by '.'
6060
*/
6161
default @NotNull String key() {
62-
return getBaseKey().toLowerCase().replace('$', '.');
62+
return getBaseKey().replace('$', '.');
6363
}
6464

6565
private String getBaseKey() {
6666
if (this instanceof Enum<?> enumKey) {
67-
return enumKey.name();
67+
return enumKey.name().toLowerCase();
6868
}
6969
// Fallback to default toString() for non-enum keys
7070
return toString();

0 commit comments

Comments
 (0)