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

Provide "I18n::Backend::Fallbacks#on_fallback" hook to allow users to… #520

Merged
merged 1 commit into from
Jun 4, 2020

Conversation

piecehealth
Copy link
Contributor

Provide "I18n::Backend::Fallbacks#on_fallback" hook to allow users to add specified logic when the fallback succeeds.

… add specified logic when the fallback succeeds.
@radar
Copy link
Collaborator

radar commented Mar 29, 2020

Hey @piecehealth. This PR looks good to me. What kind of use case are you using for detecting when fallbacks succeed?

@piecehealth
Copy link
Contributor Author

Hi @radar, a lot of translations come from other gems/libraries, e.g. https://github.com/heartcombo/devise/tree/master/config/locales , so I want to log these kinds of translations when the fallbacks succeed so that I could be aware of I missed some translations for particular locale quickly.

@radar
Copy link
Collaborator

radar commented Jun 4, 2020

Seems good to me. Thanks @piecehealth!

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