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

Fix field label translation concatenates previous prefix #9648

Merged
merged 7 commits into from
Feb 7, 2024

Conversation

adguernier
Copy link
Contributor

Problem

<LabelPrefixContextProvider> concatenates previous prefix if it is inside a LabelPrefixContext.

It's lead to return translation key such as resources.posts.fields.title.resources.comments.fields.body but it make more sense to simply return resources.comments.fields.body even LabelPrefixContext is nested inside another.

<LabelPrefixContextProvider> was introduce used in this #7710 but keeping previous prefix seems to be useful.

Solution

Do not keep previous prefix

@adguernier adguernier added the RFR Ready For Review label Feb 6, 2024
@slax57 slax57 added this to the 4.16.10 milestone Feb 7, 2024
@slax57 slax57 merged commit e3d5cda into master Feb 7, 2024
11 checks passed
@slax57 slax57 deleted the fix/field-label-translation-concatenate-old-prefix branch February 7, 2024 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants