From 169ba1b62e83d1cfab66faee995e30fb0ffb74bb Mon Sep 17 00:00:00 2001 From: Rein Van Oyen Date: Sat, 24 Feb 2024 13:57:22 +0100 Subject: [PATCH] feat: i18n --- resources/js/actions/select-one.js | 6 +++--- resources/lang/en/snippets.php | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/resources/js/actions/select-one.js b/resources/js/actions/select-one.js index c3bfaca..520b3ab 100644 --- a/resources/js/actions/select-one.js +++ b/resources/js/actions/select-one.js @@ -37,7 +37,7 @@ function SelectOne(props) { // Redirect redirect(); // Notify the user - ui.notify(i18n.get('snippets.singular_deleted', {singular: props.singular})); + ui.notify('Success'); } const redirect = () => { @@ -75,13 +75,13 @@ function SelectOne(props) {
diff --git a/resources/lang/en/snippets.php b/resources/lang/en/snippets.php index 796875d..e7d8a8e 100644 --- a/resources/lang/en/snippets.php +++ b/resources/lang/en/snippets.php @@ -102,6 +102,9 @@ 'delete_singular_confirm' => 'Delete :singular', 'delete_singular_cancel' => 'Cancel', + 'select_singular_confirm' => 'Select :singular', + 'select_singular_cancel' => 'Cancel', + 'singular_created' => ':singular was created', 'singular_updated' => ':singular was updated', 'singular_deleted' => ':singular was deleted',