Fix translations in docker registry UI

This commit is contained in:
Girish Ramakrishnan
2025-09-10 17:26:33 +02:00
parent 38a2fdff39
commit acaf7cd934
14 changed files with 43 additions and 115 deletions
+10 -5
View File
@@ -16,11 +16,15 @@ const registries = ref([]);
const columns = {
serverAddress: {
label: t('settings.privateDockerRegistry.server'),
label: t('dockerRegistries.server'),
sort: true
},
provider: {
label: t('dockerRegistries.provider'),
sort: true
},
username: {
label: t('settings.privateDockerRegistry.username'),
label: t('dockerRegistries.username'),
sort: true
},
actions: {}
@@ -57,7 +61,8 @@ function onEditOrAdd(registry = null) {
async function onRemove(registry) {
const yes = await inputDialog.value.confirm({
message: t('settings.privateDockerRegistry.deleteQuestion'),
title: t('dockerRegistries.removeDialog.title', { serverAddress: registry.serverAddress}),
message: t('dockerRegistres.removeDialog.description'),
confirmStyle: 'danger',
confirmLabel: t('main.dialog.delete'),
rejectLabel: t('main.dialog.cancel')
@@ -84,7 +89,7 @@ onMounted(async () => {
</script>
<template>
<Section :title="$t('settings.dockerRegistries.title')" :title-badge="features.privateDockerRegistry ? 'Upgrade' : ''">
<Section :title="$t('dockerRegistries.title')" :title-badge="features.privateDockerRegistry ? 'Upgrade' : ''">
<Menu ref="actionMenuElement" :model="actionMenuModel" />
<InputDialog ref="inputDialog" />
<DockerRegistryDialog ref="dialog" @success="refresh()"/>
@@ -93,7 +98,7 @@ onMounted(async () => {
<Button icon="fa-solid fa-plus" @click="onEditOrAdd()">{{ $t('main.action.add') }}</Button>
</template>
<p v-html="$t('settings.privateDockerRegistry.description', { customAppsLink: 'https://docs.cloudron.io/custom-apps/tutorial/' })"></p>
<p v-html="$t('dockerRegistries.description', { customAppsLink: 'https://docs.cloudron.io/custom-apps/tutorial/' })"></p>
<TableView :columns="columns" :model="registries">
<template #actions="registry">
@@ -83,7 +83,7 @@ defineExpose({
<template>
<Dialog ref="dialog"
:title="$t('settings.privateDockerRegistryDialog.title')"
:title="$t('dockerRegistries.dialog.title')"
:confirm-label="$t('main.dialog.save')"
:confirm-busy="busy"
:confirm-active="!busy && isValid"
@@ -103,22 +103,22 @@ defineExpose({
</FormGroup>
<FormGroup>
<label for="serverAddressInput">{{ $t('settings.privateDockerRegistry.server') }}</label>
<label for="serverAddressInput">{{ $t('dockerRegistries.server') }}</label>
<TextInput id="serverAddressInput" v-model="serverAddress" placeholder="docker.io" required />
</FormGroup>
<FormGroup>
<label for="usernameInput">{{ $t('settings.privateDockerRegistry.username') }}</label>
<label for="usernameInput">{{ $t('dockerRegistries.username') }}</label>
<TextInput id="usernameInput" v-model="username" required />
</FormGroup>
<FormGroup>
<label for="emailInput">{{ $t('settings.privateDockerRegistryDialog.email') }}</label>
<label for="emailInput">{{ $t('dockerRegistries.email') }} (Optional)</label>
<TextInput id="emailInput" v-model="email" />
</FormGroup>
<FormGroup>
<label for="passwordInput">{{ $t('settings.privateDockerRegistryDialog.passwordToken') }}</label>
<label for="passwordInput">{{ $t('dockerRegistries.passwordToken') }}</label>
<TextInput id="passwordInput" v-model="password" required />
</FormGroup>
</fieldset>