Skip to content

Commit 1cfe3a4

Browse files
authored
Merge pull request #328 from LykosAI/main
2 parents 2f5371a + 2576571 commit 1cfe3a4

File tree

5 files changed

+799
-15
lines changed

5 files changed

+799
-15
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to Stability Matrix will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning 2.0](https://semver.org/spec/v2.0.0.html).
77

8+
## v2.7.1
9+
### Added
10+
- Added Turkish UI language option, thanks to Progesor for the translation
11+
### Fixed
12+
- Fixed Inference Image to Image projects missing denoise strength setting
13+
814
## v2.7.0
915
### Added
1016
#### General

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ Stability Matrix is now available in the following languages, thanks to our comm
104104
- Lautaroturina
105105
- 🇷🇺 Русский
106106
- aolko
107+
- 🇹🇷 Türkçe
108+
- Progesor
107109

108110
If you would like to contribute a translation, please create an issue or contact us on Discord. Include an email where we'll send an invite to our [POEditor](https://poeditor.com/) project.
109111

StabilityMatrix.Avalonia/Languages/Cultures.cs

+6-15
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ public static class Cultures
1313

1414
public static CultureInfo? Current => Resources.Culture;
1515

16-
public static readonly Dictionary<string, CultureInfo> SupportedCulturesByCode = new Dictionary<
17-
string,
18-
CultureInfo
19-
>
16+
public static readonly Dictionary<string, CultureInfo> SupportedCulturesByCode = new Dictionary<string, CultureInfo>
2017
{
2118
["en-US"] = Default,
2219
["ja-JP"] = new("ja-JP"),
@@ -25,18 +22,15 @@ public static class Cultures
2522
["it-IT"] = new("it-IT"),
2623
["fr-FR"] = new("fr-FR"),
2724
["es"] = new("es"),
28-
["ru-RU"] = new("ru-RU")
25+
["ru-RU"] = new("ru-RU"),
26+
["tr-TR"] = new("tr-TR")
2927
};
3028

31-
public static IReadOnlyList<CultureInfo> SupportedCultures =>
32-
SupportedCulturesByCode.Values.ToImmutableList();
29+
public static IReadOnlyList<CultureInfo> SupportedCultures => SupportedCulturesByCode.Values.ToImmutableList();
3330

3431
public static CultureInfo GetSupportedCultureOrDefault(string? cultureCode)
3532
{
36-
if (
37-
cultureCode is null
38-
|| !SupportedCulturesByCode.TryGetValue(cultureCode, out var culture)
39-
)
33+
if (cultureCode is null || !SupportedCulturesByCode.TryGetValue(cultureCode, out var culture))
4034
{
4135
return Default;
4236
}
@@ -54,10 +48,7 @@ public static void SetSupportedCultureOrDefault(string? cultureCode)
5448

5549
public static bool TrySetSupportedCulture(string? cultureCode)
5650
{
57-
if (
58-
cultureCode is null
59-
|| !SupportedCulturesByCode.TryGetValue(cultureCode, out var culture)
60-
)
51+
if (cultureCode is null || !SupportedCulturesByCode.TryGetValue(cultureCode, out var culture))
6152
{
6253
return false;
6354
}

0 commit comments

Comments
 (0)