Closed misaki-web closed 1 year ago
The extension is hard-coded for English:
https://github.com/koalamer/vsc-workspace-in-status-bar/blob/5696af445d848f04852a4b4b146fa44f2f9742e2/src/extension.ts#L57-L64
Instead of testing if the string ends with the English postfix, we could have an array of translated postfixes and check if the string ends with one of the array items. Here's a few postfixes:
de
es
fr
it
The extension is hard-coded for English:
https://github.com/koalamer/vsc-workspace-in-status-bar/blob/5696af445d848f04852a4b4b146fa44f2f9742e2/src/extension.ts#L57-L64
Instead of testing if the string ends with the English postfix, we could have an array of translated postfixes and check if the string ends with one of the array items. Here's a few postfixes:
de
: " (Arbeitsbereich)"es
: " (área de trabajo)"fr
: " (Espace de travail)"it
: " (Area di lavoro)"