Skip to content

Commit

Permalink
moved resources/lang directory to the root directory
Browse files Browse the repository at this point in the history
  • Loading branch information
imahmood authored and salehhashemi1992 committed Dec 13, 2023
1 parent 5421da1 commit 864f643
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/OtpManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function sendAndRetryCheck(string $mobile, OtpTypeInterface $type = null)

throw ValidationException::withMessages([
'otp' => [
trans('OtpManager::otp.throttle', ['seconds' => $remainingTime]),
trans('otp-manager::otp.throttle', ['seconds' => $remainingTime]),
],
]);
}
Expand Down
4 changes: 2 additions & 2 deletions src/OtpManagerServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ class OtpManagerServiceProvider extends ServiceProvider
*/
public function boot(): void
{
$this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'OtpManager');
$this->loadTranslationsFrom(__DIR__.'/../lang', 'otp-manager');

// Publishing the lang file.
$this->publishes([
__DIR__.'/../resources/lang' => resource_path('lang/vendor/otp-manager'),
__DIR__.'/../lang' => $this->app->langPath('vendor/otp-manager'),
], 'lang');

// Publishing the configuration file.
Expand Down

0 comments on commit 864f643

Please sign in to comment.