mirror of
https://gitcode.com/gh_mirrors/se/Semi.Avalonia
synced 2026-04-28 04:03:22 +08:00
Add French local to the set of languages (#626)
* Create fr-fr.axaml Creating the locale resource for French language * Update _index.cs Include french in the index file * Update fr-fr.axaml Fix namespace * Update MainView.axaml.cs Adding French as a demo language * Update demo/Semi.Avalonia.Demo/Views/MainView.axaml.cs Language specific header name Co-authored-by: Zhang Dian <54255897+zdpcdt@users.noreply.github.com> * Update src/Semi.Avalonia/Locale/fr-fr.axaml Co-authored-by: Zhang Dian <54255897+zdpcdt@users.noreply.github.com> * Update src/Semi.Avalonia/Locale/fr-fr.axaml Co-authored-by: Zhang Dian <54255897+zdpcdt@users.noreply.github.com> * Add French to the local collection --------- Co-authored-by: Zhang Dian <54255897+zdpcdt@users.noreply.github.com>
This commit is contained in:
@@ -126,6 +126,12 @@ public partial class MainViewModel : ObservableObject
|
||||
Command = SelectLocaleCommand,
|
||||
CommandParameter = new CultureInfo("pl-pl")
|
||||
},
|
||||
new MenuItemViewModel
|
||||
{
|
||||
Header = "Français",
|
||||
Command = SelectLocaleCommand,
|
||||
CommandParameter = new CultureInfo("fr-fr")
|
||||
},
|
||||
]
|
||||
}
|
||||
];
|
||||
@@ -191,4 +197,4 @@ public class MenuItemViewModel
|
||||
public ICommand? Command { get; set; }
|
||||
public object? CommandParameter { get; set; }
|
||||
public IList<MenuItemViewModel>? Items { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user