diff --git a/src/Ursa.Themes.Semi/Index.axaml.cs b/src/Ursa.Themes.Semi/Index.axaml.cs index efa2038..aad0df8 100644 --- a/src/Ursa.Themes.Semi/Index.axaml.cs +++ b/src/Ursa.Themes.Semi/Index.axaml.cs @@ -15,7 +15,8 @@ public class SemiTheme : Styles private static readonly Dictionary _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; } -} \ No newline at end of file +} diff --git a/src/Ursa.Themes.Semi/Locale/fr-fr.axaml b/src/Ursa.Themes.Semi/Locale/fr-fr.axaml new file mode 100644 index 0000000..0877df4 --- /dev/null +++ b/src/Ursa.Themes.Semi/Locale/fr-fr.axaml @@ -0,0 +1,21 @@ + + Mettre au premier plan + Avancer + Reculer + Envoyer à l'arrière + OK + Annuler + Oui + Non + Fermer + Aller à la page + + Sombre + Clair + Système + Confirmer + Heure de début + Heure de fin + diff --git a/src/Ursa.Themes.Semi/Locale/fr-fr.axaml.cs b/src/Ursa.Themes.Semi/Locale/fr-fr.axaml.cs new file mode 100644 index 0000000..1f3efb9 --- /dev/null +++ b/src/Ursa.Themes.Semi/Locale/fr-fr.axaml.cs @@ -0,0 +1,13 @@ +using Avalonia.Controls; +using Avalonia.Markup.Xaml; + +namespace Ursa.Themes.Semi.Locale; + +public class fr_fr: ResourceDictionary +{ + public fr_fr() + { + AvaloniaXamlLoader.Load(this); + this["STRING_PAGINATION_PAGE"] = string.Empty; + } +}