diff --git a/_locales/en/messages.json b/_locales/en/messages.json index e3715a3..c92658b 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -184,5 +184,8 @@ }, "bookmark_favicon_img_alt": { "message": "bookmark icon" + }, + "bookmark_new_folder_default_title": { + "message": "New folder" } } \ No newline at end of file diff --git a/_locales/zh_CN/messages.json b/_locales/zh_CN/messages.json index 42cff8d..a4b8266 100644 --- a/_locales/zh_CN/messages.json +++ b/_locales/zh_CN/messages.json @@ -184,5 +184,8 @@ }, "bookmark_favicon_img_alt": { "message": "书签图标" + }, + "bookmark_new_folder_default_title": { + "message": "新建文件夹" } } \ No newline at end of file diff --git a/src/popup/components/FolderGrid.vue b/src/popup/components/FolderGrid.vue index ea11291..3da1111 100644 --- a/src/popup/components/FolderGrid.vue +++ b/src/popup/components/FolderGrid.vue @@ -35,8 +35,8 @@ watch(newFolderTitleEdit, () => { const setNewFolder = inject('setNewFolder') // set the new folder const addNewFolder = () => { - // the default title is 「新建文件夹」 - newFolderTitle.value = '新建文件夹' + // the default title is "New folder" or 「新建文件夹」 + newFolderTitle.value = useGetTranslation('bookmark_new_folder_default_title') setNewFolder({ index: 0, parentId: nodeTreeId.value, diff --git a/src/popup/components/FolderGridItem.vue b/src/popup/components/FolderGridItem.vue index ee09927..356db95 100644 --- a/src/popup/components/FolderGridItem.vue +++ b/src/popup/components/FolderGridItem.vue @@ -198,8 +198,8 @@ watch(newFolderTitleEdit, () => { const setNewFolder = inject('setNewFolder') // set the new folder const addNewFolder = () => { - // the default title is 「新建文件夹」 - newFolderTitle.value = '新建文件夹' + // the default title is "New folder" or 「新建文件夹」 + newFolderTitle.value = useGetTranslation('bookmark_new_folder_default_title') setNewFolder({ index: 0, parentId: folderNavArr.value[0].id,