Jean-Tinland / simple-bar

A yabai status bar widget for Übersicht
https://www.jeantinland.com/toolbox/simple-bar
MIT License
1.21k stars 129 forks source link

date format issue #359

Closed rwijtvliet closed 1 year ago

rwijtvliet commented 1 year ago

When configuring the date format in the widget settings, I entered de_DE and applied (restarted).

Unfortunately, this broke the configuration, and now it will not start:

image

This also means, I cannot change the date format back to e.g. en_UK.

I tried grepping through the übersicht widget folder for the de_DE text, but had no results. I tried deleting the whole simple-bar folder and re-cloning from here, but this didn't fix it either.

So my question / issue: how do I fix this? I'm sure there must be a text file somewhere that has stored this setting, but I cannot find it.

Many thanks!

rwijtvliet commented 1 year ago

(The issue, I understand, is because I should have used de-DE instead of de_DE.)

rwijtvliet commented 1 year ago

I was able to fix it by temporarily changing line 39 (const _locale = locale.length > 4 ? locale : "en-UK") in lib/components/date-display.jsx to always be "en-UK".

I'll close this issue, but it might still be good idea to revert to a previous state of the config, if the current config breaks things.