Move locales to single json files & Replace laravel-vue-i18n with vue-i18n

This commit is contained in:
Bubka
2025-06-20 18:14:21 +02:00
parent 01e56284ca
commit 6f419cfbcb
412 changed files with 3531 additions and 30057 deletions

View File

@@ -146,7 +146,7 @@ export const useTwofaccounts = defineStore({
* Deletes selected accounts
*/
async deleteSelected() {
if(confirm(trans('twofaccounts.confirm.delete')) && this.selectedIds.length > 0) {
if(confirm(t('message.twofaccounts.confirm.delete')) && this.selectedIds.length > 0) {
await twofaccountService.batchDelete(this.selectedIds.join())
.then(response => {
let remainingItems = this.items
@@ -155,7 +155,7 @@ export const useTwofaccounts = defineStore({
})
this.items = remainingItems
this.selectNone()
useNotifyStore().success({ text: trans('twofaccounts.accounts_deleted') })
useNotifyStore().success({ text: t('message.twofaccounts.accounts_deleted') })
})
}
},