Skip to content

Commit

Permalink
Correcting a translation message error (#7)
Browse files Browse the repository at this point in the history
* Correcting a translation message error

* Move the translation message from /resources/locale to /locale
  • Loading branch information
cable8mm authored Mar 4, 2024
1 parent 56e91c4 commit 063a229
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/Rules/KisaPassword.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function passes($attribute, $value)
*/
public function message()
{
return __('validationKisaRules::messages', [
return __('validationKisaRules::messages.kisa_password', [
'attribute' => $this->attribute,
]);
}
Expand Down
6 changes: 3 additions & 3 deletions src/ValidationKisaRulesServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ class ValidationKisaRulesServiceProvider extends ServiceProvider
{
public function boot()
{
$this->loadTranslationsFrom(__DIR__.'/../lang', 'validationKisaRules');

$this->publishes([
__DIR__.'/../resources/lang' => resource_path('lang/vendor/validationKisaRules'),
__DIR__.'/../lang' => $this->app->langPath('vendor/validationKisaRules'),
]);

$this->loadTranslationsFrom(__DIR__.'/../resources/lang/', 'validationKisaRules');
}
}

0 comments on commit 063a229

Please sign in to comment.