add translations

This commit is contained in:
william-allspice 2024-08-22 21:35:56 -05:00
parent 5dbaf6ec6e
commit d096c970b3
3 changed files with 10 additions and 4 deletions

View File

@ -3697,6 +3697,7 @@ runs.no_workflows.documentation = For more information on Gitea Actions, see <a
runs.no_runs = The workflow has no runs yet.
runs.empty_commit_message = (empty commit message)
runs.expire_log_message = Logs have been purged because they were too old.
runs.details = Run details
workflow.disable = Disable Workflow
workflow.disable_success = Workflow '%s' disabled successfully.
@ -3708,6 +3709,7 @@ workflow.not_found = Workflow '%s' not found.
workflow.run_success = Workflow '%s' run successfully.
workflow.from_ref = Use workflow from
workflow.has_workflow_dispatch = This workflow has a workflow_dispatch event trigger.
workflow.file = Workflow file
need_approval_desc = Need approval to run workflows for fork pull request.

View File

@ -12,6 +12,7 @@
data-locale-rerun-all="{{ctx.Locale.Tr "rerun_all"}}"
data-locale-runs-scheduled="{{ctx.Locale.Tr "actions.runs.scheduled"}}"
data-locale-runs-commit="{{ctx.Locale.Tr "actions.runs.commit"}}"
data-locale-runs-details="{{ctx.Locale.Tr "actions.runs.details"}}"
data-locale-runs-pushed-by="{{ctx.Locale.Tr "actions.runs.pushed_by"}}"
data-locale-status-unknown="{{ctx.Locale.Tr "actions.status.unknown"}}"
data-locale-status-waiting="{{ctx.Locale.Tr "actions.status.waiting"}}"
@ -27,6 +28,7 @@
data-locale-show-log-seconds="{{ctx.Locale.Tr "show_log_seconds"}}"
data-locale-show-full-screen="{{ctx.Locale.Tr "show_full_screen"}}"
data-locale-download-logs="{{ctx.Locale.Tr "download_logs"}}"
data-locale-workflow-file="{{ctx.Locale.Tr "actions.workflow.file"}}"
>
</div>
</div>

View File

@ -351,10 +351,12 @@ export function initRepositoryActionView() {
artifactsTitle: el.getAttribute('data-locale-artifacts-title'),
areYouSure: el.getAttribute('data-locale-are-you-sure'),
confirmDeleteArtifact: el.getAttribute('data-locale-confirm-delete-artifact'),
runDetails: el.getAttribute('data-locale-runs-details'),
showTimeStamps: el.getAttribute('data-locale-show-timestamps'),
showLogSeconds: el.getAttribute('data-locale-show-log-seconds'),
showFullScreen: el.getAttribute('data-locale-show-full-screen'),
downloadLogs: el.getAttribute('data-locale-download-logs'),
workflowFile: el.getAttribute('data-locale-workflow-file'),
status: {
unknown: el.getAttribute('data-locale-status-unknown'),
waiting: el.getAttribute('data-locale-status-waiting'),
@ -422,14 +424,14 @@ export function initRepositoryActionView() {
</a>
</div>
</div>
<div class="left-side-section">
<div class="left-side-section" v-if="run.workflowFileLink">
<div class="left-side-section-title">
Run details
{{ locale.runDetails }}
</div>
<ul class="left-side-section-list">
<li class="left-side-section-item" v-for="artifact in artifacts" :key="artifact.name">
<li class="left-side-section-item">
<a class="left-side-section-link" target="_blank" :href="run.workflowFileLink">
<SvgIcon name="octicon-file" class="ui text black left-side-section-icon"/>{{ run.workflowID }}
<SvgIcon name="octicon-file" class="ui text black left-side-section-icon"/>{{ locale.workflowFile }}
</a>
</li>
</ul>