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/collection translated name not resetting after being removed #16131

Merged
merged 7 commits into from
Oct 25, 2022

Conversation

azrikahar
Copy link
Contributor

Description

Fixes #16128

Changes

  • Fix field translation not being reset when the translation(s) gets removed

    chrome_5hLg2co7Rc.mp4
  • Applied same fix for collections

    chrome_0xALft1UZg.mp4
  • Removed unused translations in settings.yaml

    translations needs to be an array and the nested keys should be language + translation, not language + translations (plural). Hence these translations are never used, and it seems like they are outdated.

Type of Change

  • Bugfix
  • Improvement
  • New Feature
  • Refactor / codestyle updates
  • Other, please describe:

Requirements Checklist

  • New / updated tests are included
  • All tests are passing locally
  • Performed a self-review of the submitted code

If adding a new feature:

  • Documentation was added/updated. PR:

app/src/stores/fields.ts Outdated Show resolved Hide resolved
@rijkvanzanten
Copy link
Member

Can we sneak in a unit test or two for those stores? 🙂

@azrikahar
Copy link
Contributor Author

Can we sneak in a unit test or two for those stores? 🙂

Added!

@rijkvanzanten rijkvanzanten added this to the Next Release milestone Oct 25, 2022
@rijkvanzanten rijkvanzanten merged commit 10082cc into main Oct 25, 2022
@rijkvanzanten rijkvanzanten deleted the issue/16128 branch October 25, 2022 19:08
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Translating the field not reverting without refreshing the app
3 participants