mirror of
https://github.com/kestra-io/kestra.git
synced 2025-12-19 18:05:41 -05:00
refactor(core): remove usage of unnecessary i18n composable (#13645)
Closes https://github.com/kestra-io/kestra/issues/13590. Co-authored-by: MilosPaunovic <paun992@hotmail.com>
This commit is contained in:
@@ -2,16 +2,13 @@
|
||||
<button @click="emit('add', what)" class="py-2 adding" type="button">
|
||||
{{
|
||||
what
|
||||
? t("no_code.adding", {what})
|
||||
: t("no_code.adding_default")
|
||||
? $t("no_code.adding", {what})
|
||||
: $t("no_code.adding_default")
|
||||
}}
|
||||
</button>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import {useI18n} from "vue-i18n";
|
||||
const {t} = useI18n({useScope: "global"});
|
||||
|
||||
const emit = defineEmits<{
|
||||
(e: "add", what: string | undefined): void;
|
||||
}>();
|
||||
|
||||
Reference in New Issue
Block a user