You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simplification of Code
The dataSource method from the HasOptions trait was removed, leading to a reduction in complex data retrieval and form creation logic. This results in cleaner, less complicated code.
Addition of Multilingual Functionality
The Translatable trait was added to CreateCollection, EditCollection, and ListCollections classes. This enables the system to support multiple languages.
Inclusion of Language Switching Options LocaleSwitcher actions were introduced in the headers of CreateCollection, EditCollection, and ListCollections pages. This integration allows users to seamlessly switch between different languages while navigating these pages.
Enhancement of Language Translation in Collections
The Collection model was updated to use HasTranslations and marked name and values fields as translatable. This upgrade extends the translation capabilities of the model, improving the user experience for different language users.
Improved Handling of Translatable Attributes
We introduced custom accessor methods for name and values in the Collection model. These methods provide improved handling of JSON attributes and ensure accurate translation.
Better Data Handling
The cast for values in the Collection model was changed from collection to array, which allows for more efficient handling of this data.
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
this is base on #360 for version 4
it will need:
spatie laravel translatable