@lvce-editor/explorer-view 4.9.0 → 4.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1805,7 +1805,7 @@ const CopyRelativePath = 'Copy Relative Path';
|
|
|
1805
1805
|
const Cut = 'Cut';
|
|
1806
1806
|
const Delete = 'Delete';
|
|
1807
1807
|
const FileNameCannotStartWithSlash = 'A file or folder name cannot start with a slash.';
|
|
1808
|
-
const FileOrFolderAlreadyExists = 'A file or folder **{
|
|
1808
|
+
const FileOrFolderAlreadyExists = 'A file or folder **{PH1}** already exists at this location. Please choose a different name.';
|
|
1809
1809
|
const FileOrFolderNameMustBeProvider = 'A file or folder name must be provided.';
|
|
1810
1810
|
const FileCannotStartWithDot = 'A file or folder name cannot start with a dot.';
|
|
1811
1811
|
const FileCannotStartWithBackSlash = 'A file or folder name cannot start with a backslash.';
|
|
@@ -1884,8 +1884,10 @@ const fileCannotStartWithBackSlash = () => {
|
|
|
1884
1884
|
const typeAFileName = () => {
|
|
1885
1885
|
return i18nString(TypeAFileName);
|
|
1886
1886
|
};
|
|
1887
|
-
const fileOrFolderAlreadyExists =
|
|
1888
|
-
return i18nString(FileOrFolderAlreadyExists
|
|
1887
|
+
const fileOrFolderAlreadyExists = name => {
|
|
1888
|
+
return i18nString(FileOrFolderAlreadyExists, {
|
|
1889
|
+
PH1: name
|
|
1890
|
+
});
|
|
1889
1891
|
};
|
|
1890
1892
|
|
|
1891
1893
|
const validateFileName2 = (name, siblingFileNames = []) => {
|
|
@@ -1905,7 +1907,7 @@ const validateFileName2 = (name, siblingFileNames = []) => {
|
|
|
1905
1907
|
|
|
1906
1908
|
// Check if file already exists
|
|
1907
1909
|
if (siblingFileNames.includes(name)) {
|
|
1908
|
-
return fileOrFolderAlreadyExists();
|
|
1910
|
+
return fileOrFolderAlreadyExists(name);
|
|
1909
1911
|
}
|
|
1910
1912
|
return '';
|
|
1911
1913
|
};
|