mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 02:06:36 +02:00
[QuickAccent]Add Bulgarian (#33550)
## Summary of the Pull Request Adds Bulgarian to Quick Accent ## Detailed Description of the Pull Request / Additional comments Adds Cyrillic letter short I (й)
This commit is contained in:
committed by
GitHub
parent
b7c8bb201b
commit
f1ca65ca78
@@ -10,6 +10,7 @@ namespace PowerAccent.Core
|
||||
public enum Language
|
||||
{
|
||||
ALL,
|
||||
BG,
|
||||
CA,
|
||||
CRH,
|
||||
CUR,
|
||||
@@ -54,7 +55,8 @@ namespace PowerAccent.Core
|
||||
{
|
||||
return lang switch
|
||||
{
|
||||
Language.ALL => GetDefaultLetterKeyALL(letter), // ALL
|
||||
Language.ALL => GetDefaultLetterKeyALL(letter), // All
|
||||
Language.BG => GetDefaultLetterKeyBG(letter), // Bulgarian
|
||||
Language.CA => GetDefaultLetterKeyCA(letter), // Catalan
|
||||
Language.CRH => GetDefaultLetterKeyCRH(letter), // Crimean Tatar
|
||||
Language.CUR => GetDefaultLetterKeyCUR(letter), // Currency
|
||||
@@ -103,7 +105,8 @@ namespace PowerAccent.Core
|
||||
{
|
||||
if (!_allLanguagesCache.TryGetValue(letter, out string[] cachedValue))
|
||||
{
|
||||
cachedValue = GetDefaultLetterKeyCA(letter)
|
||||
cachedValue = GetDefaultLetterKeyBG(letter)
|
||||
.Union(GetDefaultLetterKeyCA(letter))
|
||||
.Union(GetDefaultLetterKeyCRH(letter))
|
||||
.Union(GetDefaultLetterKeyCUR(letter))
|
||||
.Union(GetDefaultLetterKeyCY(letter))
|
||||
@@ -198,6 +201,16 @@ namespace PowerAccent.Core
|
||||
};
|
||||
}
|
||||
|
||||
// Bulgarian
|
||||
private static string[] GetDefaultLetterKeyBG(LetterKey letter)
|
||||
{
|
||||
return letter switch
|
||||
{
|
||||
LetterKey.VK_I => new[] { "й" },
|
||||
_ => Array.Empty<string>(),
|
||||
};
|
||||
}
|
||||
|
||||
// Crimean Tatar
|
||||
private static string[] GetDefaultLetterKeyCRH(LetterKey letter)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user