Load the default language always #130

Closed
opened 2026-07-21 17:24:50 +02:00 by jakob.scheid · 2 comments
Owner

Load default language always

Problem

If a key does not appear in the translations of a language, the translation of the default language (English) should be used. But, if the page is loaded and the language is something other than the default, there are no fallback keys loaded yet and the key is used instead of the translation. Displaying the key provides a worse user experience than displaying an English translation, so we should load the default language always initially.

If the default language is already loaded and the language is switched, all strings that are not translated into the language use the fallback properly.

Goal

Use the default language always initially.

# Load default language always ## Problem If a key does not appear in the translations of a language, the translation of the default language (English) should be used. But, if the page is loaded and the language is something other than the default, there are no fallback keys loaded yet and the key is used instead of the translation. Displaying the key provides a worse user experience than displaying an English translation, so we should load the default language always initially. If the default language is already loaded and the language is switched, all strings that are not translated into the language use the fallback properly. ## Goal Use the default language always initially.
jakob.scheid added this to the 0.1.0 milestone 2026-07-21 17:24:50 +02:00
jakob.scheid added the
Priority
Medium
3
Kind/Bug
labels 2026-07-21 17:24:50 +02:00
jakob.scheid added this to the Project Board project 2026-07-21 17:24:50 +02:00
Member

Just to clarify: Is it okay if this results in two language files being loaded on startup (the fallback language and the user's selected language), or do you have a different approach in mind?

Just to clarify: Is it okay if this results in two language files being loaded on startup (the fallback language and the user's selected language), or do you have a different approach in mind?
Author
Owner

Just to clarify: Is it okay if this results in two language files being loaded on startup (the fallback language and the user's selected language), or do you have a different approach in mind?

Yes, you are absolutely right. I mean that the fallback language and the language selected by the user is loaded initially. Of course, if they are the same, only one language is loaded.

> Just to clarify: Is it okay if this results in two language files being loaded on startup (the fallback language and the user's selected language), or do you have a different approach in mind? Yes, you are absolutely right. I mean that the fallback language **and** the language selected by the user is loaded initially. Of course, if they are the same, only one language is loaded.
jakob.scheid moved this to Done in Project Board on 2026-07-21 19:59:24 +02:00
jakob.scheid moved this to Review in Project Board on 2026-07-21 19:59:29 +02:00
jakob.scheid moved this to Done in Project Board on 2026-07-21 19:59:33 +02:00
jakob.scheid added the
Reviewed
Confirmed
1
label 2026-07-30 17:22:20 +02:00
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Seekra/frontend#130