Skip to content

Show real line breaks in four Traditional Chinese headers - #238

Merged
iliyami merged 1 commit into
mainfrom
fix/zh-hant-line-breaks
Oct 14, 2026
Merged

iliyami merged 1 commit into
mainfrom
fix/zh-hant-line-breaks

Conversation

@iliyami

@iliyami iliyami commented Oct 14, 2026

Copy link
Copy Markdown
Owner

Four zh-Hant translations (Smart Scan, System Junk, and two Duplicates headers) contained a literal \\n instead of a line break, so Traditional Chinese users saw the backslash on screen.

  • Replaced the four literal \\n with real line breaks in Localization.swift.
  • testMultiLineStringsKeepARealLineBreakInEveryLanguage renders each two-line string in every language and fails on a literal backslash-n or a lost line break. It failed for zh-Hant before the fix.
  • VERSION 1.25.3 (follows README: document the five new modules (22 total) #237 at 1.25.2).

Local gate: version sync OK, build OK, 1049 tests, 0 failures.

The zh-Hant translations of the Smart Scan, System Junk, and Duplicates
headers typed a literal backslash-n, so the interface showed "\n"
instead of breaking the line. A new test checks every language keeps a
real line break in these strings.
@iliyami
iliyami force-pushed the fix/zh-hant-line-breaks branch from ddca8fc to 1be6022 Compare October 14, 2026 06:26
@iliyami
iliyami merged commit 36ea6bd into main Oct 14, 2026
2 checks passed
@iliyami
iliyami deleted the fix/zh-hant-line-breaks branch October 14, 2026 06:35
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.

1 participant