Skip to content

Commit 8e9383a

Browse files
mahoshojoHCGclaude
andcommitted
macos: declare CFBundleLocalizations so UI culture is detected in .app
Without a CFBundleLocalizations array, macOS reports "en" to CFBundleCopyPreferredLocalizations regardless of the user's language preferences, so CultureInfo.CurrentUICulture always resolved to English inside the packaged .app. Declare the languages we actually ship (en, zh-Hans) so the system returns the correct match. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 672f917 commit 8e9383a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

WinPartFlash.Gui/MacOS/Info.plist.template

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
<dict>
55
<key>CFBundleDevelopmentRegion</key>
66
<string>en</string>
7+
<key>CFBundleLocalizations</key>
8+
<array>
9+
<string>en</string>
10+
<string>zh-Hans</string>
11+
</array>
712
<key>CFBundleDisplayName</key>
813
<string>WinPartFlash</string>
914
<key>CFBundleName</key>

0 commit comments

Comments
 (0)