Skip to content

fix(l10n): escape apostrophe in Italian ARB plural string#1097

Merged
SERDUN merged 2 commits into
developfrom
fix/it-arb-icu-apostrophe
Apr 10, 2026
Merged

fix(l10n): escape apostrophe in Italian ARB plural string#1097
SERDUN merged 2 commits into
developfrom
fix/it-arb-icu-apostrophe

Conversation

@SERDUN

@SERDUN SERDUN commented Apr 10, 2026

Copy link
Copy Markdown
Member

Summary

  • Fixes ICU lexing error in app_it.arb that caused Android build failure in CI
  • Single quote ' in dell'ultimo was being parsed as an ICU escape character
  • Fixed by escaping to '' per ICU message format spec

Root cause

[app_it.arb:logRecordsConsole_Text_recordsCountHint] ICU Lexing Error: Unexpected character.
    {one=Visualizzazione dell'ultimo {count} record...
                             ^
Target gen_localizations failed: Error: Found syntax errors.

Test plan

  • Run flutter gen-l10n locally — should complete without errors
  • Trigger CI build — gen_localizations step should pass

ICU message format treats single quotes as escape characters.
Unescaped apostrophe in `dell'ultimo` caused ICU lexing error
and broke gen_localizations during the Android build.

Fix: replace `'` with `''` in the affected plural form.
@SERDUN SERDUN requested a review from Copilot April 10, 2026 12:54
@SERDUN SERDUN marked this pull request as ready for review April 10, 2026 12:54
@SERDUN SERDUN requested a review from digiboridev April 10, 2026 12:54

This comment was marked as resolved.

ICU message format treats ASCII ' as an escape character, causing a
lexing error in gen_localizations during CI Android build.

Fix: replace the ASCII apostrophe in `dell'ultimo` with U+2019 RIGHT
SINGLE QUOTATION MARK, which is not an ICU syntax character. Visual
output is unchanged. Regenerated app_localizations_it.g.dart accordingly.
@SERDUN SERDUN merged commit 5f2f06a into develop Apr 10, 2026
1 check passed
@SERDUN SERDUN deleted the fix/it-arb-icu-apostrophe branch April 10, 2026 13:05
SERDUN added a commit that referenced this pull request Apr 10, 2026
* fix(l10n): escape apostrophe in Italian ARB plural string

ICU message format treats single quotes as escape characters.
Unescaped apostrophe in `dell'ultimo` caused ICU lexing error
and broke gen_localizations during the Android build.

Fix: replace `'` with `''` in the affected plural form.

* fix(l10n): replace ASCII apostrophe with U+2019 in Italian ARB plural

ICU message format treats ASCII ' as an escape character, causing a
lexing error in gen_localizations during CI Android build.

Fix: replace the ASCII apostrophe in `dell'ultimo` with U+2019 RIGHT
SINGLE QUOTATION MARK, which is not an ICU syntax character. Visual
output is unchanged. Regenerated app_localizations_it.g.dart accordingly.
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.

3 participants