Repository navigation
fix(launcher): 按首选语言识别应用本地化名称 - #3
Merged
Merged
Conversation
This was referenced Sep 17, 2026
Closed
DCjanus
force-pushed
the
fix/app-localization-foundation
branch
from
September 17, 2026 08:01
cd68b9a to
d1e0cde
Compare
DCjanus
force-pushed
the
fix/app-localization-foundation
branch
from
September 18, 2026 03:39
d1e0cde to
da2b10e
Compare
DCjanus
force-pushed
the
fix/app-localization-foundation
branch
from
September 18, 2026 03:45
da2b10e to
4ed53b2
Compare
DCjanus
force-pushed
the
fix/app-localization-foundation
branch
from
September 18, 2026 20:47
4ed53b2 to
56da29f
Compare
DCjanus
force-pushed
the
fix/app-localization-foundation
branch
2 times, most recently
from
September 23, 2026 03:46
bda4c4f to
52581d1
Compare
DCjanus
force-pushed
the
fix/app-localization-foundation
branch
from
September 23, 2026 09:24
52581d1 to
3ef660c
Compare
DCjanus
force-pushed
the
fix/app-localization-foundation
branch
from
September 28, 2026 04:05
3ef660c to
370cde5
Compare
DCjanus
force-pushed
the
fix/app-localization-foundation
branch
from
September 29, 2026 16:07
510b4b3 to
5ca0765
Compare
DCjanus
force-pushed
the
fix/app-localization-foundation
branch
from
September 29, 2026 17:30
5ca0765 to
09ee98f
Compare
DCjanus
force-pushed
the
fix/app-localization-foundation
branch
3 times, most recently
from
October 4, 2026 05:09
d14db88 to
3db92b0
Compare
DCjanus
force-pushed
the
fix/app-localization-foundation
branch
from
October 5, 2026 04:13
3db92b0 to
8a63e32
Compare
DCjanus
force-pushed
the
fix/app-localization-foundation
branch
from
October 5, 2026 04:34
8a63e32 to
dc05ae4
Compare
abue-ammar#753 App-name lookup now gathers the localization codes that actually exist in `InfoPlist.loctable` and `.lproj` folders, then uses Foundation's bundle localization selection to rank them for the user's preferred languages. This lets `zh-Hans-CN` select either `zh_CN` or `zh-Hans` without maintaining language-specific expansion rules. Candidates are limited to the same language and script; Foundation decides regional fallbacks such as `es-MX` to `es_419`. The bundle's development localization participates in the same ranking so an untranslated base name stays at the position of the language it is written in. English remains indexed as a search alias. This builds a short list of localization identifiers while an app bundle is scanned and adds no retained state. Runtime memory was not re-measured for this fork-only fix. Leak-tested: Not applicable; no long-lived allocation or UI lifecycle changes. Each uncached bundle scan enumerates its top-level Resources directory to discover `.lproj` folders. - Covers system-style `zh_CN` loctables, third-party `zh-Hans.lproj` bundles, script-bearing development regions, unsupported leading preferences, and Foundation's `es-MX` to `es_419` fallback. - The full 73-harness suite and lint pass on the fork's macOS 26 GitHub Actions runner.
DCjanus
force-pushed
the
fix/app-localization-foundation
branch
from
October 9, 2026 02:08
dc05ae4 to
56772e2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issue
abue-ammar#753
What changed
zh_CN和第三方应用常见的zh-Hans,其他带文字系统或地区的语言也按同一规则回退。实现上先收集
InfoPlist.loctable与.lproj中实际存在的本地化标识,再由 Foundation 在同一语言和文字系统内排序,避免为具体语言维护特例。Memory footprint
扫描未缓存的应用 bundle 时构造一个短生命周期的本地化标识列表,不新增长期状态。
Leak-tested: 不适用;未改变对象生命周期或 UI 生命周期。
Drawbacks
每次未缓存的 bundle 扫描会枚举 Resources 顶层目录以发现
.lproj文件夹。Tests & validation
zh_CNloctable、zh-Hans.lproj、带文字系统的开发语言、不支持的首选语言,以及区域语言回退。app-name-test通过;Debug 构建成功。