Localization updates for 2.15.0 (#3520)

* Add: episode edit dropdowns

* Update: lazy episode table and row

* Various string updates

* Batch quick match strings

* Author card strings

* Update translation key for quick match episodes confirm

---------

Co-authored-by: advplyr <advplyr@protonmail.com>
This commit is contained in:
Nicholas W
2024-10-17 15:03:08 -07:00
committed by GitHub
parent 1c15007e32
commit 9327331ee9
17 changed files with 135 additions and 76 deletions

View File

@ -96,7 +96,7 @@ export default {
const menuItems = []
if (this.userIsAdminOrUp) {
menuItems.push({
text: 'Quick match all episodes',
text: this.$strings.MessageQuickMatchAllEpisodes,
action: 'quick-match-episodes'
})
}
@ -262,21 +262,21 @@ export default {
this.processing = true
const payload = {
message: 'Quick matching episodes will overwrite details if a match is found. Only unmatched episodes will be updated. Are you sure?',
message: this.$strings.MessageConfirmQuickMatchEpisodes,
callback: (confirmed) => {
if (confirmed) {
this.$axios
.$post(`/api/podcasts/${this.libraryItem.id}/match-episodes?override=1`)
.then((data) => {
if (data.numEpisodesUpdated) {
this.$toast.success(`${data.numEpisodesUpdated} episodes updated`)
this.$toast.success(this.$getString('ToastEpisodeUpdateSuccess', [data.numEpisodesUpdated]))
} else {
this.$toast.info(this.$strings.ToastNoUpdatesNecessary)
}
})
.catch((error) => {
console.error('Failed to request match episodes', error)
this.$toast.error('Failed to match episodes')
this.$toast.error(this.$strings.ToastFailedToMatch)
})
}
this.processing = false