Skip to main content

Translations

You can publish the package translation files and override any strings used by the UI.

Publish the language files into your application:

php artisan vendor:publish --tag="commentions-lang"
``

This will copy the language files to:

- `lang/vendor/commentions/{locale}/comments.php`

Override only the keys you need. Example (English):

```php
// lang/vendor/commentions/en/comments.php
return [
'label' => 'Notes',
'no_comments_yet' => 'No notes yet.',
'add_reaction' => 'Add a reaction',
'cancel' => 'Close',
'delete' => 'Remove',
'save' => 'Update',
];