feat(translations): use i18n for url previews
This commit is contained in:
parent
55f953bca1
commit
bd1f7e469e
|
|
@ -1489,6 +1489,16 @@
|
||||||
"labels": {
|
"labels": {
|
||||||
"recommended": "Empfohlen",
|
"recommended": "Empfohlen",
|
||||||
"notAvailable": "Nicht verfügbar"
|
"notAvailable": "Nicht verfügbar"
|
||||||
|
},
|
||||||
|
"urlPreview": {
|
||||||
|
"title": "Beispiel-Sync-URL:",
|
||||||
|
"legend": {
|
||||||
|
"serverUrl": "Server-URL",
|
||||||
|
"webdavPath": "WebDAV-Pfad",
|
||||||
|
"bucketPrefix": "Bucket/Präfix",
|
||||||
|
"watchDirectory": "Überwachungsverzeichnis",
|
||||||
|
"exampleFile": "Beispieldatei"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1489,6 +1489,16 @@
|
||||||
"labels": {
|
"labels": {
|
||||||
"recommended": "Recommended",
|
"recommended": "Recommended",
|
||||||
"notAvailable": "Not Available"
|
"notAvailable": "Not Available"
|
||||||
|
},
|
||||||
|
"urlPreview": {
|
||||||
|
"title": "Example sync URL:",
|
||||||
|
"legend": {
|
||||||
|
"serverUrl": "Server URL",
|
||||||
|
"webdavPath": "WebDAV Path",
|
||||||
|
"bucketPrefix": "Bucket/Prefix",
|
||||||
|
"watchDirectory": "Watch Directory",
|
||||||
|
"exampleFile": "Example File"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1489,6 +1489,16 @@
|
||||||
"labels": {
|
"labels": {
|
||||||
"recommended": "Recomendado",
|
"recommended": "Recomendado",
|
||||||
"notAvailable": "No Disponible"
|
"notAvailable": "No Disponible"
|
||||||
|
},
|
||||||
|
"urlPreview": {
|
||||||
|
"title": "URL de sincronización de ejemplo:",
|
||||||
|
"legend": {
|
||||||
|
"serverUrl": "URL del servidor",
|
||||||
|
"webdavPath": "Ruta WebDAV",
|
||||||
|
"bucketPrefix": "Bucket/Prefijo",
|
||||||
|
"watchDirectory": "Directorio vigilado",
|
||||||
|
"exampleFile": "Archivo de ejemplo"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1489,6 +1489,16 @@
|
||||||
"labels": {
|
"labels": {
|
||||||
"recommended": "Recommandé",
|
"recommended": "Recommandé",
|
||||||
"notAvailable": "Non disponible"
|
"notAvailable": "Non disponible"
|
||||||
|
},
|
||||||
|
"urlPreview": {
|
||||||
|
"title": "Exemple d'URL de synchronisation :",
|
||||||
|
"legend": {
|
||||||
|
"serverUrl": "URL du serveur",
|
||||||
|
"webdavPath": "Chemin WebDAV",
|
||||||
|
"bucketPrefix": "Bucket/Préfixe",
|
||||||
|
"watchDirectory": "Répertoire surveillé",
|
||||||
|
"exampleFile": "Fichier exemple"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -370,10 +370,12 @@ const SourcesPage: React.FC = () => {
|
||||||
|
|
||||||
const getLabelForType = (type: 'server' | 'path' | 'folder' | 'file') => {
|
const getLabelForType = (type: 'server' | 'path' | 'folder' | 'file') => {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 'server': return 'Server URL';
|
case 'server': return t('sources.urlPreview.legend.serverUrl');
|
||||||
case 'path': return formData.source_type === 'webdav' ? 'WebDAV Path' : 'Bucket/Prefix';
|
case 'path': return formData.source_type === 'webdav'
|
||||||
case 'folder': return 'Watch Directory';
|
? t('sources.urlPreview.legend.webdavPath')
|
||||||
case 'file': return 'Example File';
|
: t('sources.urlPreview.legend.bucketPrefix');
|
||||||
|
case 'folder': return t('sources.urlPreview.legend.watchDirectory');
|
||||||
|
case 'file': return t('sources.urlPreview.legend.exampleFile');
|
||||||
default: return '';
|
default: return '';
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
@ -392,7 +394,7 @@ const SourcesPage: React.FC = () => {
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Typography variant="caption" color="text.secondary" sx={{ display: 'block', mb: 1 }}>
|
<Typography variant="caption" color="text.secondary" sx={{ display: 'block', mb: 1 }}>
|
||||||
Example sync URL:
|
{t('sources.urlPreview.title')}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue