Skip to content

Conversation

@pklaschka
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings November 24, 2025 23:19
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds escaping of literal curly braces during i18n string extraction from TypeScript source files. The change ensures that extracted localization keys match the format of keys generated at runtime, where the escapeKey function is already used.

  • Wraps template literal text with escapeKey() calls in the extraction process
  • Applies escaping consistently to all template string types (no-substitution templates, template expressions with spans)
  • Aligns extraction behavior with runtime behavior in lt() and ensureLazyLocalizedString()

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@pklaschka pklaschka merged commit 6aec27a into main Nov 24, 2025
10 checks passed
@pklaschka pklaschka deleted the fix-extraction-escape-key branch November 24, 2025 23:23
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.

2 participants