Add French local to the resources (#702)

* Create fr-fr.axaml

Create the resources for french local

* Create fr-fr.axaml.cs code behind for french local

* Add French as a local resource in index file

* Fix duplicate keys

* Update src/Ursa.Themes.Semi/Locale/fr-fr.axaml to AI suggestions

Co-authored-by: Zhang Dian <54255897+zdpcdt@users.noreply.github.com>

---------

Co-authored-by: Zhang Dian <54255897+zdpcdt@users.noreply.github.com>
This commit is contained in:
King
2025-06-14 06:23:08 +01:00
committed by GitHub
parent eb20d8eaec
commit ef668079b3
3 changed files with 37 additions and 2 deletions

View File

@@ -15,7 +15,8 @@ public class SemiTheme : Styles
private static readonly Dictionary<CultureInfo, ResourceDictionary> _localeToResource = new()
{
{ new CultureInfo("zh-CN"), new zh_cn() },
{ new CultureInfo("en-US"), new en_us() }
{ new CultureInfo("en-US"), new en_us() },
{ new CultureInfo("fr-FR"), new fr_fr() },
};
private static readonly ResourceDictionary _defaultResource = new zh_cn();
@@ -94,4 +95,4 @@ public class SemiTheme : Styles
if (!_localeToResource.TryGetValue(culture, out var resources)) return;
foreach (var kv in resources) element.Resources[kv.Key] = kv.Value;
}
}
}