- actives
+
+ {{ __('actives') }}
+
+
window.removeEventListener('keydown', esc))
:closeOnSelect="false"
:clearOnSelect="false"
:createTag="true"
- mode="tags"
+ :placeholder="__('actives')"
ref="actives"
-
- placeholder="actives" />
+ mode="tags"
+ />
@@ -219,38 +254,55 @@ onUnmounted(() => window.removeEventListener('keydown', esc))
- permissions
+
+ {{ __('permissions') }}
+
+
+ mode="tags"
+ />
-
+
-
icon
+
+ {{ __('icon') }}
+
-
+
-
{{ form.icon }}
+
+ {{ form.icon }}
+
-
+
- change
+
+ {{ __('change') }}
+
@@ -261,7 +313,9 @@ onUnmounted(() => window.removeEventListener('keydown', esc))
- {{ form.id ? 'update' : 'create' }}
+
+ {{ __(form.id ? 'update' : 'create') }}
+
@@ -273,14 +327,29 @@ onUnmounted(() => window.removeEventListener('keydown', esc))
-
-
+
+
-
+
diff --git a/resources/js/Pages/Superuser/Permission/Index.vue b/resources/js/Pages/Superuser/Permission/Index.vue
index 9015e1c..26d93a3 100644
--- a/resources/js/Pages/Superuser/Permission/Index.vue
+++ b/resources/js/Pages/Superuser/Permission/Index.vue
@@ -30,8 +30,8 @@ const fetch = async () => {
permissions.value = response.data
} catch (e) {
const response = await Swal.fire({
- title: 'Do you want to try again?',
- text: `${e}`,
+ title: __('do you want to try again') + '?',
+ text: __(`${e}`),
icon: 'error',
showCancelButton: true,
showCloseButton: true,
@@ -77,8 +77,8 @@ const update = () => form.patch(route('superuser.permission.update', form.id), {
const destroy = async permission => {
const response = await Swal.fire({
- title: 'Are you sure?',
- text: 'You can\'t restore it after deleted',
+ title: __('are you sure') + '?',
+ text: __('you can\'t restore it after deleted'),
icon: 'warning',
showCancelButton: true,
})
@@ -101,13 +101,18 @@ onUnmounted(() => window.removeEventListener('keydown', esc))
-
+
-
+
- create
+ {{ __('create') }}
@@ -115,37 +120,65 @@ onUnmounted(() => window.removeEventListener('keydown', esc))
-
+
-
-
+
+
-
{{ permission.name }}
+
+ {{ __(permission.name) }}
+
-
-
+
+
+
-
+
-