Waybar icon indicating copy to clipboard operation
Waybar copied to clipboard

Locale option in clock module no longer has an effect

Open gebner opened this issue 6 years ago • 2 comments

The following configuration should show the current date in French:

{
  "modules-center": ["clock"],

  "clock": {
    "locale": "fr_FR.UTF-8",
    "format": "{:%d %B %Y}"
  }
}

This used to work in 0.9.2. However now it prints 23 August 2020 in English (the system locale). I believe this is due to changes in https://github.com/Alexays/Waybar/pull/715

gebner avatar Aug 23 '20 10:08 gebner

I'm having the same issue. However, by looking at the first commit #715 , I've found that the workaround (or is it intended?) is to set "timezone" as well. Then, the format respects the locale once again.

jmissao avatar Mar 02 '21 13:03 jmissao

@gebner @jmissao Does this work for you now?

    "clock": {
        "timezone": "Europe/Berlin",
        "locale": "de_DE.UTF-8",
        "format": "{:%A}"
    },

This gives me "Wednesday" while I expect the German "Mittwoch".

martin-greentrax avatar Nov 08 '23 14:11 martin-greentrax