diff --git a/src/main/java/de/siphalor/was/WhatAStorage.java b/src/main/java/de/siphalor/was/WhatAStorage.java index 3cb2563..6eb7b37 100644 --- a/src/main/java/de/siphalor/was/WhatAStorage.java +++ b/src/main/java/de/siphalor/was/WhatAStorage.java @@ -243,8 +243,8 @@ public class WhatAStorage { public String[] getLangs() { return contentManager.getResources("lang", "properties").map(resource -> { int index = resource.getId().lastIndexOf('.'); - return resource.getId().substring(Math.max(index, 0)); - }).toArray(String[]::new); + return resource.getId().substring(Math.max(index + 1, 0)); + }).distinct().toArray(String[]::new); } /**