Skip to content

Commit

Permalink
Merge pull request #26 from zyf722/i18n/zh-CN
Browse files Browse the repository at this point in the history
Add Simplified Chinese localization
  • Loading branch information
iminashi authored Jul 15, 2024
2 parents e9a5c72 + a200434 commit 187546b
Show file tree
Hide file tree
Showing 3 changed files with 567 additions and 1 deletion.
1 change: 1 addition & 0 deletions samples/DLCBuilder/DLCBuilder.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
</None>
<AvaloniaResource Include="Assets\coverart_placeholder.png" />
<EmbeddedResource Include="Assets\icon.ico" />
<EmbeddedResource Include="i18n\zh-CN.json" />
<EmbeddedResource Include="i18n\en.json" />
<EmbeddedResource Include="i18n\fi.json" />
<EmbeddedResource Include="i18n\jp.json" />
Expand Down
3 changes: 2 additions & 1 deletion samples/DLCBuilder/Localization.fs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ module Locales =
let All =
[ Locale.Default
{ Name = "Suomi"; ShortName = "fi" }
{ Name = "日本語"; ShortName = "jp" } ]
{ Name = "日本語"; ShortName = "jp" }
{ Name = "简体中文"; ShortName = "zh-CN" } ]

let fromShortName shortName =
All
Expand Down
Loading

0 comments on commit 187546b

Please sign in to comment.