-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
fix: properly work with languages with multiple scripts #18167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Please fix the formatting in the file. Thanks |
Co-authored-by: Ewe Zu Lin <[email protected]>
Head branch was pushed to by a user without write access
@alextran1502 Done! |
Hi @LPkkjHD , thanks for the mention. The i18n files should be renamed too right? I'm assuming it would default to English if it doesn't find the files. |
Not quite. The i18n files are named correct (at least that's what I gathered from testing this change). My read on why this bug occurred is that |
I agree with your read on the root cause of the original bug – that the However, I think the change might have introduced a new issue. By changing So, while the setting itself seems to stick correctly with your change, the UI language doesn't actually update and remains in English because the correct translation file isn't being loaded. Perhaps the i18n file names do need to be updated to match the new locale identifiers? Or is there something else I might be missing in my test setup? |
My Testing was starting the app and upon seeing the Letters of the designated scripts in the timeline checking whether the right language was still set. However, you're absolutely spot on with your take (obviously the date would translate correctly, as this is managed by the system rather than the translation strings). I'm ashamed this slipped though as it's a rather plain error.
I think renaming them is a rather big hustle and touches the web code as well. We could abuse the |
…8167) Co-authored-by: Ewe Zu Lin <[email protected]>
Description
The pointers by @zlewe in the Issue have been very helpful. This is literally just the implementation.
Fixes #17965
How Has This Been Tested?
This has been manually tested with the following steps
Checklist:
src/services/
uses repositories implementations for database calls, filesystem operations, etc.src/repositories/
is pretty basic/simple and does not have any immich specific logic (that belongs insrc/services/
)