laravel / nova-issues

554 stars 35 forks source link

Make Export As CSV action fully localizable #4736

Closed davidhemphill closed 2 years ago

davidhemphill commented 2 years ago

Discussed in https://github.com/laravel/nova-issues/discussions/4732

Originally posted by **kusab85** August 24, 2022 Make Export As CSV action fully localizable by applying translate ``__()`` function to labels of ``Type`` and ``Filename`` fields. ```php Select::make(__('Type'), 'writerType')->options(function () { return [ 'csv' => 'CSV (.csv)', 'xlsx' => 'Excel (.xlsx)', ]; })->default($default)->rules(['required', Rule::in(['csv', 'xlsx'])]) ``` ```php Text::make(__('Filename'), 'filename')->default($default)->rules(['required', 'min:1']) ```
davidhemphill commented 2 years ago

This has been added and will be included in the next release. 👍

github-actions[bot] commented 2 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.