feat(settings): choose German or English for the interface
A language card on the settings page switches all texts right after saving, without a restart; German is the default and the choice is kept in settings.json. The laut.fm station ID and token fields are gone with the library provider, and the device labels now read Für die Hörer and Für dich. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d906222a39
commit
4c8740774d
4 files changed
+110
-88
No files matched your search
@@ -4,6 +4,7 @@ using Microsoft.Extensions.DependencyInjection;
|
||||
using Radiosender.Controllers;
|
||||
using Radiosender.Services.Audio;
|
||||
using Radiosender.Services.Library;
|
||||
using Radiosender.Services.Localization;
|
||||
using Radiosender.Services.Providers;
|
||||
using Radiosender.Services.Scheduling;
|
||||
using Radiosender.Services.Settings;
|
||||
@@ -67,8 +68,8 @@ public partial class App : Application
|
||||
{
|
||||
base.OnStartup(e);
|
||||
_services = BuildServices();
|
||||
// Eager: applies settings to generator and audio output before first plan.
|
||||
_services.GetRequiredService<SettingsStore>();
|
||||
// Eager: applies settings to generator and audio output before first plan, language before first window.
|
||||
Loc.SetLanguage(_services.GetRequiredService<SettingsStore>().Current.Language);
|
||||
Wpf.Ui.Appearance.ApplicationThemeManager.ApplySystemTheme();
|
||||
_services.GetRequiredService<MainWindow>().Show();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user