Browse Source

Fixed button translate issue

0xJacky 2 years ago
parent
commit
b3a5fd91b9

+ 3 - 1
frontend/src/components/StdDataDisplay/StdTable.vue

@@ -183,7 +183,9 @@ watch(params, () => {
         >
             <template #action>
                 <div class="reset-btn">
-                    <a-button @click="reset_search" v-translate>Reset</a-button>
+                    <a-button @click="reset_search">
+                        <translate>Reset</translate>
+                    </a-button>
                 </div>
             </template>
         </std-data-entry>

File diff suppressed because it is too large
+ 0 - 0
frontend/src/language/translations.json


+ 3 - 1
frontend/src/views/other/Error.vue

@@ -8,7 +8,9 @@ const {$gettext} = useGettext()
     <div class="wrapper">
         <h1 class="title">{{ $route.meta.status_code || 404 }}</h1>
         <p>{{ $route.meta.error?.() ?? $gettext('File Not Found') }}</p>
-        <a-button type="primary" v-translate @click="$router.push('/')">Back Home</a-button>
+        <a-button type="primary" @click="$router.push('/')">
+            <translate>Back Home</translate>
+        </a-button>
     </div>
 </template>
 

Some files were not shown because too many files changed in this diff