MrCode97 / windowOrganizer

0 stars 0 forks source link

German text version #20

Closed MrCode97 closed 3 weeks ago

MrCode97 commented 1 month ago

Most functionality is there, still to fix is:

Things to check:

I.e. I started this:

//App.js
const locale = navigator.language;
let defaultlang;
if(localStorage.getItem('lang')) {
  defaultlang = localStorage.getItem('lang');
} else if (locale.startsWith("de")) {
  defaultlang = "de-DE";
} else {
  defaultlang = "en-US";
}

so we could read/set the lang in localStorage, if a user makes an intend language change. Note, only if nothing is set, we consider navigator.language.

@luechtdiode if you have the time and energy, I'd appreciate you working this out. As you already introduced this text-injection within the Impressum, I think you'll get there faster. Otherwise I'll fix it later.

luechtdiode commented 1 month ago
luechtdiode commented 1 month ago

current state is deployed for review at test.advents-calendar.org

MrCode97 commented 1 month ago

See: b8c8066586d682e19acc0fb81b065c2d75d532e7

Prefer the LangFlag-switch and position AdventToolbar.tsx:58, but let me know you think?

Regarding warnings:

luechtdiode commented 1 month ago

current state is deployed for review at test.advents-calendar.org cool: grafik