Resolve Symbol
s using the original fallback locale
#591
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What are you trying to accomplish?
Proof of concept solution to #590
What approach did you choose and why?
I added a new
fallback_original_locale
reserved option, and make use of it in the newI18n::Backends::Fallbacks#resolve
method.Seemed like a reasonable way to deal with it? 🤷
What should reviewers focus on?
This changes the behaviour of
resolve
when using theFallbacks
backend, when aSymbol
is resolved.This is probably a bad idea, since it is probably considered a breaking change?
I'm not sure if there is any documentation describing the "Why?" of the "resolve
Symbol
s" feature. It might be the case that this is exactly the desired behaviour, and therefore this is actually "just a bug fix". cc @svenfuchs, who may have more context?I mostly threw it together to start a conversation about how we might support this behaviour.
The impact of these changes
Fixes #590