Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
May 31, 2024

Conversation

gadfly3173
Copy link
Contributor

No description provided.

@love-linger
Copy link
Collaborator

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>

@gadfly3173 gadfly3173 force-pushed the feat/i18n-fallback branch from b6c4a8f to 693648a Compare May 31, 2024 14:00
@love-linger love-linger merged commit b74bd99 into sourcegit-scm:develop May 31, 2024
4 checks passed
@gadfly3173 gadfly3173 deleted the feat/i18n-fallback branch May 31, 2024 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants