Load the default language on startup #133

Merged
jakob.scheid merged 3 commits from fix/load-default-language into main 2026-07-21 19:59:06 +02:00
Member

Summary

  • always load the fallback language on application startup
  • load the user's selected language afterwards if it differs from the fallback language
  • ensure fallback translations are available immediately during the initial load

Related issues

Closes: #130

## Summary - always load the fallback language on application startup - load the user's selected language afterwards if it differs from the fallback language - ensure fallback translations are available immediately during the initial load ## Related issues Closes: #130
jakob.gregory added this to the 0.1.0 milestone 2026-07-21 19:09:58 +02:00
jakob.gregory added the Kind/BugArea/Global labels 2026-07-21 19:09:58 +02:00
jakob.gregory added this to the Project Board project 2026-07-21 19:09:58 +02:00
jakob.gregory added 1 commit 2026-07-21 19:09:59 +02:00
jakob.gregory moved this to Review in Project Board on 2026-07-21 19:10:19 +02:00
jakob.scheid reviewed 2026-07-21 19:12:51 +02:00
src/main.js Outdated
@@ -27,1 +27,3 @@
await loadLanguage(getCurrentLanguage())
await loadLanguage(fallbackLocale)
const currentLanguage = getCurrentLanguage()
Owner

This check is not necessary. loadLanguage already checks whether a language has already been loaded. If the language preferred by the user is the same as the fallback language, it is not redundantly fetched.

This check is not necessary. `loadLanguage` already checks whether a language has already been loaded. If the language preferred by the user is the same as the fallback language, it is not redundantly fetched.
jakob.scheid marked this conversation as resolved
jakob.scheid reviewed 2026-07-21 19:13:28 +02:00
src/main.js Outdated
@@ -25,3 +25,3 @@
(async () => {
await loadLanguage(getCurrentLanguage())
await loadLanguage(fallbackLocale)
Owner

Please use a semicolon at the end of the line.

Please use a semicolon at the end of the line.
Author
Member

I will fix that.

I will fix that.
jakob.scheid marked this conversation as resolved
jakob.gregory added 1 commit 2026-07-21 19:14:54 +02:00
jakob.gregory added 1 commit 2026-07-21 19:19:32 +02:00
jakob.scheid approved these changes 2026-07-21 19:58:52 +02:00
jakob.scheid merged commit d5f80eba67 into main 2026-07-21 19:59:06 +02:00
jakob.scheid deleted branch fix/load-default-language 2026-07-21 19:59:06 +02:00
jakob.scheid moved this to Done in Project Board on 2026-07-21 19:59:31 +02:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Seekra/frontend#133