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:
Lee Kyeong Joon
2025-12-12 23:36:50 +09:00
committed by GitHub
parent 42992fd7c3
commit 2f8284b133

View File

@@ -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;
}>();