sourcegit-scm / sourcegit

Windows/macOS/Linux GUI client for GIT users
MIT License
1.14k stars 112 forks source link

fix: i18n use en_US.axaml as default language resource #158

Closed gadfly3173 closed 4 months ago

love-linger commented 4 months ago

If you want to use en_US resource as the fallback for zh_CN, you can simply add these lines into zh_CN.xaml without changing any code.

 <ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
+   <ResourceDictionary.MergedDictionaries>
+    <ResourceInclude Source="en_US.axaml"/>
+   </ResourceDictionary.MergedDictionaries>
  <x:String x:Key="Text.About" xml:space="preserve">关于软件</x:String>