chore(settings): drop the language-changed flash banner
Changing the language re-renders the UI in the new locale already, so the 'Language updated' banner was redundant. Remove the flash and its orphaned i18n key.
This commit is contained in:
parent
bde8d4801e
commit
b78d6acf7a
4 changed files with 0 additions and 6 deletions
|
|
@ -78,9 +78,6 @@ public function updateLanguage(Request $request): RedirectResponse
|
|||
'locale' => ['required', 'string', 'in:'.implode(',', array_keys(config('languages.available')))],
|
||||
]);
|
||||
|
||||
session()->flash('flash.banner', __('settings.flash.language_updated'));
|
||||
session()->flash('flash.bannerStyle', 'success');
|
||||
|
||||
return back()->withCookie(
|
||||
cookie()->forever('locale', $request->locale, '/', config('session.domain'))
|
||||
);
|
||||
|
|
|
|||
|
|
@ -300,7 +300,6 @@
|
|||
'flash' => [
|
||||
'account_updated' => 'Account updated successfully!',
|
||||
'profile_updated' => 'Profile updated successfully!',
|
||||
'language_updated' => 'Language updated successfully!',
|
||||
'password_updated' => 'Password updated successfully!',
|
||||
'workspace_updated' => 'Settings updated successfully!',
|
||||
'photo_updated' => 'Photo updated successfully!',
|
||||
|
|
|
|||
|
|
@ -300,7 +300,6 @@
|
|||
'flash' => [
|
||||
'account_updated' => '¡Cuenta actualizada correctamente!',
|
||||
'profile_updated' => '¡Perfil actualizado correctamente!',
|
||||
'language_updated' => '¡Idioma actualizado correctamente!',
|
||||
'password_updated' => '¡Contraseña actualizada correctamente!',
|
||||
'workspace_updated' => '¡Configuración actualizada correctamente!',
|
||||
'photo_updated' => '¡Foto actualizada correctamente!',
|
||||
|
|
|
|||
|
|
@ -300,7 +300,6 @@
|
|||
'flash' => [
|
||||
'account_updated' => 'Conta atualizada com sucesso!',
|
||||
'profile_updated' => 'Perfil atualizado com sucesso!',
|
||||
'language_updated' => 'Idioma atualizado com sucesso!',
|
||||
'password_updated' => 'Senha atualizada com sucesso!',
|
||||
'workspace_updated' => 'Configurações atualizadas com sucesso!',
|
||||
'photo_updated' => 'Foto atualizada com sucesso!',
|
||||
|
|
|
|||
Loading…
Reference in a new issue