From 7a2648ac572c0097079d0fa277e2d647c225ff94 Mon Sep 17 00:00:00 2001
From: Shariq Ansari
Date: Mon, 2 Dec 2024 17:15:37 +0530
Subject: [PATCH] fix: add __ method in options api or converted into
composition api
---
src/components/Autocomplete.vue | 3 +
src/components/Card.vue | 27 +++----
src/components/ConfirmDialog.vue | 11 ++-
src/components/ErrorMessage.vue | 29 ++++---
src/components/Input.vue | 3 +
src/components/ListItem.vue | 27 ++++---
src/components/LoadingText.vue | 18 ++---
src/components/TabButtons.vue | 45 ++++-------
.../TextEditor/TextEditorFloatingMenu.vue | 58 +++++++-------
src/components/Toast.vue | 79 +++++++++----------
10 files changed, 148 insertions(+), 152 deletions(-)
diff --git a/src/components/Autocomplete.vue b/src/components/Autocomplete.vue
index 24c9b0dd..dc7d9f45 100644
--- a/src/components/Autocomplete.vue
+++ b/src/components/Autocomplete.vue
@@ -281,6 +281,9 @@ export default {
},
},
methods: {
+ __(message) {
+ return __(message)
+ },
rootRef() {
return this.$refs['rootRef']
},
diff --git a/src/components/Card.vue b/src/components/Card.vue
index 74c26a16..df50ae18 100644
--- a/src/components/Card.vue
+++ b/src/components/Card.vue
@@ -25,24 +25,19 @@
-
diff --git a/src/components/ConfirmDialog.vue b/src/components/ConfirmDialog.vue
index 78b1016e..bf0372b6 100644
--- a/src/components/ConfirmDialog.vue
+++ b/src/components/ConfirmDialog.vue
@@ -2,7 +2,11 @@
diff --git a/src/components/Input.vue b/src/components/Input.vue
index 63d54827..6428e1ad 100644
--- a/src/components/Input.vue
+++ b/src/components/Input.vue
@@ -141,6 +141,9 @@ export default {
},
emits: ['input', 'change', 'update:modelValue'],
methods: {
+ __(message) {
+ return __(message)
+ },
focus() {
this.$refs.input.focus()
},
diff --git a/src/components/ListItem.vue b/src/components/ListItem.vue
index b8418715..12a38e2b 100644
--- a/src/components/ListItem.vue
+++ b/src/components/ListItem.vue
@@ -14,16 +14,23 @@
-
diff --git a/src/components/LoadingText.vue b/src/components/LoadingText.vue
index 0521a0fa..a54e049c 100644
--- a/src/components/LoadingText.vue
+++ b/src/components/LoadingText.vue
@@ -3,20 +3,14 @@
{{ __(text) }}
-
diff --git a/src/components/TabButtons.vue b/src/components/TabButtons.vue
index 86d33f4b..7f3bdc38 100644
--- a/src/components/TabButtons.vue
+++ b/src/components/TabButtons.vue
@@ -36,38 +36,27 @@
-
diff --git a/src/components/TextEditor/TextEditorFloatingMenu.vue b/src/components/TextEditor/TextEditorFloatingMenu.vue
index 9a38df1d..6dfae545 100644
--- a/src/components/TextEditor/TextEditorFloatingMenu.vue
+++ b/src/components/TextEditor/TextEditorFloatingMenu.vue
@@ -24,37 +24,39 @@
-
diff --git a/src/components/Toast.vue b/src/components/Toast.vue
index b997d614..16b8fcc4 100644
--- a/src/components/Toast.vue
+++ b/src/components/Toast.vue
@@ -15,7 +15,11 @@
>
{{ __(title) }}
-
+
@@ -31,52 +35,41 @@
-