Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Vietnamese #392

Merged
merged 2 commits into from Mar 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/Modals/SearchModal/SearchModal.vue
Expand Up @@ -150,8 +150,8 @@ export default {
if (status === 'Stopped') {
clearInterval(this.search.interval)
this.search.interval = null
await this.getResults()
}
await this.getResults()
}, 500)
}
},
Expand All @@ -165,13 +165,13 @@ export default {
async getResults() {
const data = await qbit.getSearchResults(this.search.id)
this.search.results = data.results
this.loading = false
},
downloadTorrent(item) {
this.createModal('addModal', { initialMagnet: item.fileUrl })
},
stopSearch() {
qbit.stopSearch(this.search.id)
this.loading = false
},
close() {
this.dialog = false
Expand Down
83 changes: 83 additions & 0 deletions src/lang/vi.js
@@ -0,0 +1,83 @@
const locale = {
/** General */
category: 'thể loại',
settings: 'cài đặt',
pause: 'tạm dừng',
delete: 'xóa',
save: 'lưu',
cancel: 'dừng',
confirm: 'xác nhận',

/** Torrent */
torrent: {
title: 'tên',
added: 'added on',
availability: 'khả dụng',
size: 'kích thước',
progress: 'thực hiện',
directory: 'đường dẫn',
downloaded: 'tải xuống',
uploaded: 'tải lên',
created: 'tạo ra bởi',
comments: 'đánh giá'
},
/** Navbar */
navbar: {
currentSpeed: 'tốc độ hiện tại',
freeSpace: 'bộ nhớ trống',
topActions: {
addTorrent: 'thêm torrent',
resumeSelected: 'tiếp tục các torrent đã chọn',
pauseSelected: 'dừng các torrent đã chọn',
removeSelected: 'gỡ các torrent đã chọn',
openSettings: 'mở cài đặt',
searchNew: 'tìm torrent mới'
},
sessionStats: {
tooltip: 'Kể từ lần cuối qBittorent được khởi động lại'
}
},

/** Modals */
modals: {
add: {
title: 'Thêm một torrent mới',
selectFiles: 'Chọn tệp của bạn'
},
delete: {
check: 'Đồng thời xóa luôn tệp dưới bộ nhớ'
}
},

/** Toast */
toast: {
loginSuccess: 'Đăng nhập thành công! 🎉',
loginFailed: 'Đăng nhập thất bại 😕',
settingsSaved: 'Cài đặt đã lưu thành công!',
categorySaved: 'Thể loại đã chỉnh sửa thành công!'
},

/** RightClick **/
rightClick: {
resume: 'tiếp tục',
forceResume: 'bắt tiếp tục',
advanced: {
advanced: 'nâng cao',
changeLocation: 'thay đổi vị trí',
rename: 'thay đổi tên'
},
prio: {
prio: 'xét sự ưu tiên',
top: 'trên cùng',
bottom: 'dưới cùng',
increase: 'tăng',
decrease: 'giảm'
},
category: 'thiết lập thể loại',
limit: 'thiết lập giới hạn',
copy: 'sao chép',
info: 'xem thông tin'
}
}

export default locale
3 changes: 1 addition & 2 deletions src/services/qbit.js
Expand Up @@ -393,8 +393,7 @@ class Qbit {

getSearchResults(id) {
return this.execute('post', '/search/results', {
id,
limit: 50
id
})
}
}
Expand Down