Skip to content

Conversation

davidwessman
Copy link
Collaborator

  • When translating with some rails methods or relative keys, it
    allows for multiple possible keys at runtime.
  • A relative key like .success inside a controller action can resolve
    to either <controller_name>.<action_name>.success or
    <controller_name>.success.
  • By allowing the scanner to return these candidate keys as well
    and check for an occurrence in missing_keys we can support them
    both.

- When translating with some rails methods or relative keys, it
  allows for multiple possible keys at runtime.
- A relative key like `.success` inside a controller action can resolve
  to either `<controller_name>.<action_name>.success` or
  `<controller_name>.success`.
- By allowing the scanner to return these candidate keys as well
  and check for an occurrence in missing_keys we can support them
  both.
@davidwessman davidwessman merged commit 5ed8c5a into main Sep 9, 2025
6 of 7 checks passed
@glebm glebm deleted the prism-support-candidate-keys branch September 9, 2025 08:00
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