diff --git a/src/Semi.Avalonia/Locale/ru-ru.axaml b/src/Semi.Avalonia/Locale/ru-ru.axaml
new file mode 100644
index 0000000..0807d44
--- /dev/null
+++ b/src/Semi.Avalonia/Locale/ru-ru.axaml
@@ -0,0 +1,24 @@
+
+
+ день
+ месяц
+ год
+
+ часы
+ минуты
+
+ Вырезать
+ Копировать
+ Вставить
+
+ Имя файла
+ Показать скрытые файлы
+ OK
+ Cancel
+ Имя
+ Дата изменения
+ Тип
+ Размер
+
\ No newline at end of file
diff --git a/src/Semi.Avalonia/Locale/ru-ru.axaml.cs b/src/Semi.Avalonia/Locale/ru-ru.axaml.cs
new file mode 100644
index 0000000..ad9bc07
--- /dev/null
+++ b/src/Semi.Avalonia/Locale/ru-ru.axaml.cs
@@ -0,0 +1,8 @@
+using Avalonia.Controls;
+
+namespace Semi.Avalonia.Locale;
+
+public class ru_ru : ResourceDictionary
+{
+
+}
\ No newline at end of file
diff --git a/src/Semi.Avalonia/Themes/SemiTheme.axaml.cs b/src/Semi.Avalonia/Themes/SemiTheme.axaml.cs
index 88268f3..7ce1bd1 100644
--- a/src/Semi.Avalonia/Themes/SemiTheme.axaml.cs
+++ b/src/Semi.Avalonia/Themes/SemiTheme.axaml.cs
@@ -8,14 +8,15 @@ using Semi.Avalonia.Locale;
namespace Semi.Avalonia;
-public class SemiTheme: Styles
+public class SemiTheme : Styles
{
private static readonly Dictionary _localeToResource = new()
{
{ new CultureInfo("zh-cn"), new zh_cn() },
{ new CultureInfo("en-us"), new en_us() },
+ { new CultureInfo("ru-ru"), new ru_ru() },
};
-
+
private readonly IServiceProvider? sp;
public SemiTheme(IServiceProvider? provider = null)
{
@@ -28,17 +29,17 @@ public class SemiTheme: Styles
{
get => _locale;
set
- {
+ {
_locale = value;
var resource = TryGetLocaleResource(value);
- if(resource is null) return;
+ if (resource is null) return;
foreach (var kv in resource)
{
this.Resources.Add(kv);
}
}
}
-
+
private static ResourceDictionary? TryGetLocaleResource(CultureInfo? locale)
{
if (locale is null)