<?xml version="1.0" encoding="utf-8" ?>
<local:SettingSectionBase
    x:Class="RodelAgent.UI.Controls.Settings.LanguageSettingSection"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:base="using:Richasy.WinUI.Share.Base"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:ext="using:RodelAgent.UI.Extensions"
    xmlns:ic="using:FluentIcons.WinUI"
    xmlns:local="using:RodelAgent.UI.Controls.Settings"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <base:SettingsCard Description="{ext:Locale Name=LanguageSettingDescription}" Header="{ext:Locale Name=LanguageSetting}">
        <base:SettingsCard.HeaderIcon>
            <ic:SymbolIcon Symbol="LocalLanguage" />
        </base:SettingsCard.HeaderIcon>

        <ComboBox
            x:Name="LanguageComboBox"
            MinWidth="120"
            AutomationProperties.Name="{ext:Locale Name=LanguageSetting}"
            SelectionChanged="OnLanguageChangedAsync"
            SelectionChangedTrigger="Committed">
            <ComboBoxItem Content="{ext:Locale Name=SystemDefault}" Tag="default" />
            <ComboBoxItem Content="简体中文" Tag="zh-Hans-CN" />
            <ComboBoxItem Content="English" Tag="en-US" />
        </ComboBox>
    </base:SettingsCard>
</local:SettingSectionBase>
