mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-19 16:32:15 +00:00
email localization fix
This commit is contained in:
@@ -15,9 +15,14 @@ class SendViaEmailAction
|
||||
string $token,
|
||||
User $user,
|
||||
): void {
|
||||
// Get default app locale
|
||||
$appLocale = get_settings('language') ?? 'en';
|
||||
|
||||
foreach ($emails as $email) {
|
||||
Notification::route('mail', $email)
|
||||
->notify(new SharedSendViaEmail($token, $user));
|
||||
->notify(
|
||||
(new SharedSendViaEmail($token, $user))->locale($appLocale)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user