add spatie and nova translatable

This commit is contained in:
2023-11-23 14:13:54 +05:00
parent 0cf71e680d
commit 220f14f388
7 changed files with 323 additions and 2 deletions

View File

@@ -0,0 +1,49 @@
<?php
return [
/**
* The locales which the `translatable` wrapper will use by default.
*
* Can be a:
* - Keyed array (['en' => 'English])
* - Callable that returns a keyed array
*/
'locales' => ['en' => 'English'],
/**
* If enabled, the Nova's current locale will always be displayed as
* the first locale in the tabs arrangement.
*
* If disabled, the locales array order is respected.
*/
'prioritize_nova_locale' => true,
/**
* Defines the display type for the translatable tabs.
*
* Available options are: 'row', 'column', 'none'
*/
'display_type' => 'row',
/**
* Defines the display type for the translatable select.
*
* Available options are: 'left-absolute', 'left-static', 'right-absolute', 'right-static
*/
'locale_select_display_type' => 'right-absolute',
/**
* If set to a locale key, the translatable fields will automatically fill other
* locales of the field's value when saving the field from the defined "default"
* locale.
*
* Set to locale key (`en`, `ru`, etc) or null to enable/disable.
*/
'fill_other_locales_from' => null,
];