TagSpaces is an offline, open source, document manager with tagging support
fix: i18n of a dialog
Ilian Sapundshievec3558bff787
diff --git a/app/locales/en/core.json b/app/locales/en/core.jsonindex 5d109188d..72199f08e 100644--- a/app/locales/en/core.json+++ b/app/locales/en/core.json@@ -518,5 +518,6 @@"toggleMapTheme": "Toggle map theme","pauseSlideShow": "pauseSlideShow","startSlideShow": "startSlideShow",+ "thumbAlreadyExists": "Thumbnail for '{{directoryName}}' already exists, do you want to override it?","-": "-"}diff --git a/app/services/utils-io.ts b/app/services/utils-io.tsindex ed990870e..56c29f608 100644--- a/app/services/utils-io.ts+++ b/app/services/utils-io.ts@@ -28,6 +28,7 @@ import {getMetaFileLocationForFile,getMetaFileLocationForDir,extractContainingDirectoryPath,+ extractDirectoryName,getThumbFileLocationForFile,getThumbFileLocationForDirectory} from '-/utils/paths';@@ -873,13 +874,17 @@ export function setFolderThumbnailPromise(filePath: string): Promise<string> {filePath,PlatformIO.getDirSeparator());+ const directoryName = extractDirectoryName(+ directoryPath,+ PlatformIO.getDirSeparator()+ );return PlatformIO.copyFilePromise(getThumbFileLocationForFile(filePath, PlatformIO.getDirSeparator()),getThumbFileLocationForDirectory(directoryPath,PlatformIO.getDirSeparator()),- 'Thumbnail for ' + directoryPath + ' exist do you want to override it?'+ i18n.t('core:thumbAlreadyExists', { directoryName })).then(() => directoryPath);}