Skip to content

Conversation

@sambostock
Copy link
Contributor

In the event of we fail to lookup one or more keys during a bulk lookup, we should still return an array of translation results.

Currently, doing a bulk lookup for multiple keys returns only the "translation missing" string for the first key.

  • The first commit adds a test describing the existing behavior.
  • The second commit fixes it and updates the test. All other tests appear unaffected.

Currently, doing a bulk lookup for multiple keys returns only the "translation
missing" string for the first key. This adds a test capturing that.
In the event of we fail to lookup one or more keys during a bulk lookup, we
should still return an array of messages.
Copy link
Contributor

@movermeyer movermeyer left a comment

Choose a reason for hiding this comment

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

Makes sense. LGTM 👍

@radar radar merged commit 4c7343f into ruby-i18n:master Jul 10, 2022
@radar
Copy link
Collaborator

radar commented Jul 10, 2022

Thank you!

@sambostock sambostock deleted the bulk-translation-missing branch July 11, 2022 00:13
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