Skip to content

Fix key extraction logic for handling 'get' keyword in keys#7

Closed
Sudeep10 wants to merge 1 commit intojustprodev:mainfrom
Sudeep10:fix_key_extraction
Closed

Fix key extraction logic for handling 'get' keyword in keys#7
Sudeep10 wants to merge 1 commit intojustprodev:mainfrom
Sudeep10:fix_key_extraction

Conversation

@Sudeep10
Copy link
Copy Markdown

This fixes an issue where keys containing "get" keyword were extracted incorrectly, for example widgetTitle was incorrectly extracted as wid

Copilot AI review requested due to automatic review settings April 30, 2026 15:54
Copy link
Copy Markdown

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

Updates the localization remote-wrapper generator to correctly extract getter keys when the key name itself contains the substring get (e.g., widgetTitle), preventing truncated keys during code generation.

Changes:

  • Reworked getter key extraction to avoid splitting on the substring get within key names.
  • Switched getter parsing to use substring slicing from the get keyword onward.

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

Comment thread lib/src/generator/generator.dart
Comment thread lib/src/generator/generator.dart
@justprodev
Copy link
Copy Markdown
Owner

closed in favor of #8

@justprodev justprodev closed this May 2, 2026
@Sudeep10 Sudeep10 deleted the fix_key_extraction branch May 6, 2026 10:14
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