mirror of
https://gitcode.com/gh_mirrors/se/Semi.Avalonia
synced 2026-03-03 00:00:55 +08:00
feat: add zh-tw locale
This commit is contained in:
27
src/Semi.Avalonia/Locale/zh-tw.axaml
Normal file
27
src/Semi.Avalonia/Locale/zh-tw.axaml
Normal file
@@ -0,0 +1,27 @@
|
||||
<ResourceDictionary
|
||||
x:Class="Semi.Avalonia.Locale.zh_tw"
|
||||
xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
<!-- DatePicker -->
|
||||
<x:String x:Key="STRING_DATEPICKER_DAY_TEXT">日</x:String>
|
||||
<x:String x:Key="STRING_DATEPICKER_MONTH_TEXT">月</x:String>
|
||||
<x:String x:Key="STRING_DATEPICKER_YEAR_TEXT">年</x:String>
|
||||
<!-- TimePicker -->
|
||||
<x:String x:Key="STRING_TIMEPICKER_HOUR_TEXT">時</x:String>
|
||||
<x:String x:Key="STRING_TIMEPICKER_MINUTE_TEXT">分</x:String>
|
||||
<x:String x:Key="STRING_TIMEPICKER_SECOND_TEXT">秒</x:String>
|
||||
<!-- TextBox/SelectableTextBox flyout -->
|
||||
<x:String x:Key="STRING_MENU_CUT">剪下</x:String>
|
||||
<x:String x:Key="STRING_MENU_COPY">複製</x:String>
|
||||
<x:String x:Key="STRING_MENU_PASTE">貼上</x:String>
|
||||
<!-- ManagedFileChooser -->
|
||||
<x:String x:Key="STRING_CHOOSER_FILE_NAME">檔案名</x:String>
|
||||
<x:String x:Key="STRING_CHOOSER_SHOW_HIDDEN_FILES">顯示隱藏檔案</x:String>
|
||||
<x:String x:Key="STRING_CHOOSER_DIALOG_OK">確定</x:String>
|
||||
<x:String x:Key="STRING_CHOOSER_DIALOG_CANCEL">取消</x:String>
|
||||
<x:String x:Key="STRING_CHOOSER_NAME_COLUMN">名稱</x:String>
|
||||
<x:String x:Key="STRING_CHOOSER_DATEMODIFIED_COLUMN">修改日期</x:String>
|
||||
<x:String x:Key="STRING_CHOOSER_TYPE_COLUMN">類型</x:String>
|
||||
<x:String x:Key="STRING_CHOOSER_SIZE_COLUMN">大小</x:String>
|
||||
<x:String x:Key="STRING_CHOOSER_PROMPT_FILE_ALREADY_EXISTS">{0} 已經存在。您要取代它嗎?</x:String>
|
||||
</ResourceDictionary>
|
||||
8
src/Semi.Avalonia/Locale/zh-tw.axaml.cs
Normal file
8
src/Semi.Avalonia/Locale/zh-tw.axaml.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
using Avalonia.Controls;
|
||||
|
||||
namespace Semi.Avalonia.Locale;
|
||||
|
||||
public class zh_tw: ResourceDictionary
|
||||
{
|
||||
|
||||
}
|
||||
@@ -22,6 +22,7 @@ public class SemiTheme : Styles
|
||||
{ new CultureInfo("ja-jp"), new ja_jp() },
|
||||
{ new CultureInfo("uk-ua"), new uk_ua() },
|
||||
{ new CultureInfo("ru-ru"), new ru_ru() },
|
||||
{ new CultureInfo("zh-tw"), new zh_tw() },
|
||||
};
|
||||
|
||||
private readonly IServiceProvider? sp;
|
||||
|
||||
Reference in New Issue
Block a user