Open ewenlau opened 7 months ago
The component for setting a person's birth date uses the custom <DateInput>
element, which relies on a normal HTML Date Input.
As far as I can tell, the following still applies:
You can assign a language to the input date type by changing the language of the page or the item itself [...].
However, that will not change the display language of the calendar shown, because that calendar element is a browser UI element, and the overwhelming majority of browsers only natively display one language at a time. Even Firefox, which supports multiple language packs, only uses the primary one chosen at any one time, and it's that UI language which it will show the input date picker with.
The good news is that your users will already see the date picker in their browser's language, no matter how obscure the language.
So there would have to be a switch to a non-native datepicker like:
Single Date
example of @svelte-plugins/datepicker
,date-picker-svelte
(demo)The same happens for changing the date/time of photos. I have my custom locale set to Japanese, which shows up correctly when viewing a photo, but reverts to American English format when trying to edit the date.
When viewing an image.
When changing the date. (The suggested timezone also isn't the same Asia/Tokyo of the server, but close)
The bug
The issue is fairly simple and not very important, it's mostly a QoL. When you set a custom locale in the settings, it doesn't apply to setting birth date to people. As I said, not very important, but I still thought it would be useful to report it and it's probably an easy fix.
The OS that Immich Server is running on
Debian 12.5
Version of Immich Server
v1.101.0
Version of Immich Mobile App
1.101.0
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Relevant log output
No response
Additional information
No response