Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consistently return array from bulk lookup, even if translation(s) missing #628

Merged
merged 2 commits into from
Jul 10, 2022

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