Skip to content

Conversation

@atmonshi
Copy link
Member

@atmonshi atmonshi commented Oct 24, 2025

this is base on #360 for version 4
it will need:

  • migration script for the collection name and its values to be json structured for spatie laravel translatable
  • check show response and export
  • check rendering the form
  • make stan happy

@atmonshi atmonshi added the enhancement New feature or request label Oct 24, 2025
@atmonshi atmonshi marked this pull request as draft October 24, 2025 18:25
@what-the-diff
Copy link

what-the-diff bot commented Oct 24, 2025

PR Summary

  • 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants