Strftime localization

Hello, I’d like to use the German localization within strftime output.
While reading the python documentation, I found out that this can be done. If your table has a date column, the following code should produce German output:

import locale #locale.setlocale(locale.LC_ALL, 'de_DE') $date.strftime("%Y-%B")

Unfortunately I get the following error:
2021-09-14_10h35_53

Is it possible to localize strftime output or will this be part of Ticket #46: Internationalization and localization set up?

Thank you! :slight_smile:

1 Like

Sorry, this is not yet supported. But it makes sense to add it to the roadmap issue you linked to. I added a comment! Thank you! :rocket:

2 Likes

Thank you for adding it to the roadmap! :slight_smile:

2 Likes

Hey :smiley:,
Did you find any workaround?
I need it too for French localization :wink: .
Thanks

Hi Sao, yes there is!
Within your document settings you can set the document language. I use this option and now finally have numbers with comma instead of points. :partying_face:

Hey @Haidosu :grinning:,
That’s nice for you :+1:,
unfortunately what I am looking after is to get the name of the day in French and even with the Locale of the document, it’s still in English.


image
image