mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 20:01:02 +00:00
Use i18n-t instead of v-html directive (#1676)
Use i18n-t component to avoid v-html directive and to make localization easier
This commit is contained in:
parent
3a475ce210
commit
3a5e912a6e
2 changed files with 8 additions and 3 deletions
|
@ -82,7 +82,8 @@
|
|||
"pipeline_path": {
|
||||
"path": "Pipeline path",
|
||||
"default": "By default: .woodpecker/*.yml -> .woodpecker.yml -> .drone.yml",
|
||||
"desc": "Path to your pipeline config (for example <span class=\"bg-gray-300 dark:bg-dark-700 rounded-md px-1\">my/path/</span>). Folders should end with a <span class=\"bg-gray-300 dark:bg-dark-700 rounded-md px-1\">/</span>."
|
||||
"desc": "Path to your pipeline config (for example {0}). Folders should end with a {1}.",
|
||||
"desc_path_example": "my/path/"
|
||||
},
|
||||
"allow_pr": {
|
||||
"allow": "Allow Pull Requests",
|
||||
|
|
|
@ -15,8 +15,12 @@
|
|||
:placeholder="$t('repo.settings.general.pipeline_path.default')"
|
||||
/>
|
||||
<template #description>
|
||||
<!-- eslint-disable-next-line vue/no-v-html -->
|
||||
<p class="text-sm text-color-alt" v-html="$t('repo.settings.general.pipeline_path.desc')" />
|
||||
<i18n-t keypath="repo.settings.general.pipeline_path.desc" tag="p" class="text-sm text-color-alt">
|
||||
<span class="bg-gray-300 dark:bg-dark-700 rounded-md px-1">{{
|
||||
$t('repo.settings.general.pipeline_path.desc_path_example')
|
||||
}}</span>
|
||||
<span class="bg-gray-300 dark:bg-dark-700 rounded-md px-1">/</span>
|
||||
</i18n-t>
|
||||
</template>
|
||||
</InputField>
|
||||
|
||||
|
|
Loading…
Reference in a new issue