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:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user