mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
Add multiple language. [WIP]
This commit is contained in:
21
Wox/Helper/ResourceMerger.cs
Normal file
21
Wox/Helper/ResourceMerger.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows;
|
||||
|
||||
namespace Wox.Helper
|
||||
{
|
||||
public class ResourceMerger
|
||||
{
|
||||
public static void ApplyResources()
|
||||
{
|
||||
var languageResource = LanguageManager.GetResourceDictionary();
|
||||
var themeResource = ThemeManager.GetResourceDictionary();
|
||||
|
||||
Application.Current.Resources.MergedDictionaries.Clear();
|
||||
Application.Current.Resources.MergedDictionaries.Add(languageResource);
|
||||
Application.Current.Resources.MergedDictionaries.Add(themeResource);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user