Replies: 3 comments 2 replies
-
Sure, that's a good idea. PR if you wish, we'll need a |
Beta Was this translation helpful? Give feedback.
-
Right. While investigating this, I noticed that every resource page has its own translation files, with a decent amount of duplication. Is there a specific reason you chose this over what e.g. Nova does with a single JSON file? I feel like while you lose a bit of flexibility, the latter is much easier to maintain, especially for community translations. As an example, some translations are already missing entries, even though the same strings have already been translated elsewhere. IMO ideally translations should not be part of the core package. There should be something like laravel-nova-lang specialized for community-provided translations. The automated checks they have for missing entries and stuff is really useful. |
Beta Was this translation helpful? Give feedback.
-
I think there should be a better default behavior for localization of the page title for create/edit/view pages. Currently, if the
getTitle()
method is not manually overwritten, it falls back to the class name. I think it should instead fall back to use something like this, using the resource label:Same for create/view. This would also be consistent with the index page, where something like this is being used to localize the "Create :resource" button label.
Beta Was this translation helpful? Give feedback.
All reactions