-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Translate labels for belongs_to/_form if available (#2590)
Currently, if a model (e.g., `Customer`) has a translation (e.g., `Client`), the translated label is correctly displayed on the Show page. However, on the Edit and New pages, the original label (e.g., `Customer`) is displayed instead of the translated one. This commit ensures that the translated label for `BelongsTo` fields is consistently displayed across all pages. Specifically, it modifies the `belongs_to`/`_form` partial to display the translated label (if available) instead of the original one. Fixes #625.
- Loading branch information
1 parent
826fe48
commit a4556b6
Showing
2 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters