Skip to content

Commit

Permalink
🐛 fix the new folder i18n bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Benbinbin committed May 3, 2023
1 parent ae27c7f commit a06322f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions _locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,5 +184,8 @@
},
"bookmark_favicon_img_alt": {
"message": "bookmark icon"
},
"bookmark_new_folder_default_title": {
"message": "New folder"
}
}
3 changes: 3 additions & 0 deletions _locales/zh_CN/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,5 +184,8 @@
},
"bookmark_favicon_img_alt": {
"message": "书签图标"
},
"bookmark_new_folder_default_title": {
"message": "新建文件夹"
}
}
4 changes: 2 additions & 2 deletions src/popup/components/FolderGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/popup/components/FolderGridItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a06322f

Please sign in to comment.