-
|
Under Laravel 12 + Nova 5 As a non-native speaker, I have been using the However, I haven't found a way to change the display name of a Repeater::make('Retail Purchase Items', 'retailPurchaseItems')
->asHasMany()
->repeatables([
Repeaters\RetailPurchaseItem::make(),
]),In this case, Retail Purchase Items corresponds to the // __('Retail Purchase Items') => '판매아이템'
Repeater::make(__('Retail Purchase Items'), 'retailPurchaseItems')
->asHasMany()
->repeatables([
Repeaters\RetailPurchaseItem::make(),
]),However, this code doesn't work because the I believe the For example, the following BelongsTo::make(__('Cashier'), 'cashier', User::class)->exceptOnForms(),How can I apply localization to the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Repeater::make(__('Retail Purchase Items'), 'retailPurchaseItems')
- ->asHasMany()
+ ->asHasMany(RetailPurchaseItem::class)
->repeatables([
Repeaters\RetailPurchaseItem::make(),
]), |
Beta Was this translation helpful? Give feedback.
Repeater::make(__('Retail Purchase Items'), 'retailPurchaseItems') - ->asHasMany() + ->asHasMany(RetailPurchaseItem::class) ->repeatables([ Repeaters\RetailPurchaseItem::make(), ]),