Hey!
So i basically have a exported var of type Language (enum which contains DE_DE and EN_US) .
In my switch statement i use this variable and check against this (see below)
switch (language) {
case Language.DE_DE: {
console.log("German")
return "Listet alle verfügbaren Befehle"
}
default: {
console.log("Fallback to english")
return "Lists all available commands"
}
}```
Somehow it always uses the default. Do i need to add breaks even though i return?
Here the variable:
```typescript
export var language = Language.DE_DE;```