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 humanization for add nested element button #2653

Closed
wants to merge 1 commit into from

Conversation

nsaloj
Copy link
Contributor

@nsaloj nsaloj commented Dec 20, 2023

What is this pull request for?

Add new element button is not translated properly for nested elements.

Converting nestable_element to a symbol allows us to humanize from the nestable element name if a locale translation does not exist, given the i18n helper. See humanize_default_string function.

Screenshots

Before:
Screenshot from 2023-12-19 10-55-59

After:
Screenshot from 2023-12-20 15-41-00

Checklist

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have added tests to cover this change

Converting `nestable_element` to a symbol allows us to humanize the nestable element name.
@nsaloj nsaloj closed this Dec 20, 2023
@nsaloj nsaloj deleted the patch-1 branch December 20, 2023 21:54
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.

1 participant