3d5a226a5a
Translate every Italian /// XML doc comment, <!-- --> XAML comment, and // inline comment to English across all source files (Core, App, tests). Add the language policy to CLAUDE.md (conversation Italian; all code and docs English). Update one test assertion that checked an Italian exception message that was also translated.
35 lines
1014 B
C#
35 lines
1014 B
C#
using Avalonia;
|
|
using Avalonia.Controls.ApplicationLifetimes;
|
|
using Avalonia.Markup.Xaml;
|
|
using PalladiumWallet.App.ViewModels;
|
|
using PalladiumWallet.App.Views;
|
|
|
|
namespace PalladiumWallet.App;
|
|
|
|
public partial class App : Application
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
AvaloniaXamlLoader.Load(this);
|
|
}
|
|
|
|
public override void OnFrameworkInitializationCompleted()
|
|
{
|
|
var vm = new MainWindowViewModel();
|
|
|
|
// Desktop (Windows/Linux): classic window. Mobile (Android): single
|
|
// view. Same shared UI (MainView) and same ViewModel.
|
|
switch (ApplicationLifetime)
|
|
{
|
|
case IClassicDesktopStyleApplicationLifetime desktop:
|
|
desktop.MainWindow = new MainWindow { DataContext = vm };
|
|
break;
|
|
case ISingleViewApplicationLifetime singleView:
|
|
singleView.MainView = new MainView { DataContext = vm };
|
|
break;
|
|
}
|
|
|
|
base.OnFrameworkInitializationCompleted();
|
|
}
|
|
}
|