mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-04 23:40:18 +00:00
refactor: introduce trString for frontend (#38741)
Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: delvh <dev.lh@web.de>
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
<script setup lang="ts">
|
||||
import WorkflowGraph from './WorkflowGraph.vue';
|
||||
import type {ActionRunViewStore} from "./ActionRunView.ts";
|
||||
import {computed, onBeforeUnmount, onMounted, toRefs} from "vue";
|
||||
import type {ActionRunViewStore} from './ActionRunView.ts';
|
||||
import {computed, onBeforeUnmount, onMounted, toRefs} from 'vue';
|
||||
import {trString} from '../modules/i18n.ts';
|
||||
|
||||
defineOptions({
|
||||
name: 'ActionRunSummaryView',
|
||||
@@ -41,7 +42,7 @@ const triggerUser = computed(() => {
|
||||
|
||||
const triggerLabel = computed(() => {
|
||||
if (isRerun.value) return locale.rerunTriggered;
|
||||
return locale.triggeredVia.replace('%s', run.value.triggerEvent);
|
||||
return trString(locale.triggeredVia, run.value.triggerEvent);
|
||||
});
|
||||
|
||||
const artifactsDisplay = computed(() => props.artifactCount > 0 ? String(props.artifactCount) : '–');
|
||||
|
||||
Reference in New Issue
Block a user