mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-07 13:41:23 +00:00
Fix deprecated i18n api (#398)
This commit is contained in:
4
resources/scripts/admin/stores/customer.js
vendored
4
resources/scripts/admin/stores/customer.js
vendored
@@ -186,7 +186,7 @@ export const useCustomerStore = (useWindow = false) => {
|
||||
this.customers.splice(index, 1)
|
||||
notificationStore.showNotification({
|
||||
type: 'success',
|
||||
message: global.tc('customers.deleted_message', 1),
|
||||
message: global.t('customers.deleted_message', 1),
|
||||
})
|
||||
resolve(response)
|
||||
})
|
||||
@@ -213,7 +213,7 @@ export const useCustomerStore = (useWindow = false) => {
|
||||
|
||||
notificationStore.showNotification({
|
||||
type: 'success',
|
||||
message: global.tc('customers.deleted_message', 2),
|
||||
message: global.t('customers.deleted_message', 2),
|
||||
})
|
||||
resolve(response)
|
||||
})
|
||||
|
||||
2
resources/scripts/admin/stores/estimate.js
vendored
2
resources/scripts/admin/stores/estimate.js
vendored
@@ -305,7 +305,7 @@ export const useEstimateStore = (useWindow = false) => {
|
||||
|
||||
notificationStore.showNotification({
|
||||
type: 'success',
|
||||
message: global.tc('estimates.deleted_message', 2),
|
||||
message: global.t('estimates.deleted_message', 2),
|
||||
})
|
||||
resolve(response)
|
||||
})
|
||||
|
||||
4
resources/scripts/admin/stores/expense.js
vendored
4
resources/scripts/admin/stores/expense.js
vendored
@@ -185,7 +185,7 @@ export const useExpenseStore = (useWindow = false) => {
|
||||
|
||||
notificationStore.showNotification({
|
||||
type: 'success',
|
||||
message: global.tc('expenses.deleted_message', 1),
|
||||
message: global.t('expenses.deleted_message', 1),
|
||||
})
|
||||
resolve(response)
|
||||
})
|
||||
@@ -211,7 +211,7 @@ export const useExpenseStore = (useWindow = false) => {
|
||||
})
|
||||
notificationStore.showNotification({
|
||||
type: 'success',
|
||||
message: global.tc('expenses.deleted_message', 2),
|
||||
message: global.t('expenses.deleted_message', 2),
|
||||
})
|
||||
resolve(response)
|
||||
})
|
||||
|
||||
2
resources/scripts/admin/stores/invoice.js
vendored
2
resources/scripts/admin/stores/invoice.js
vendored
@@ -279,7 +279,7 @@ export const useInvoiceStore = (useWindow = false) => {
|
||||
|
||||
notificationStore.showNotification({
|
||||
type: 'success',
|
||||
message: global.tc('invoices.deleted_message', 2),
|
||||
message: global.t('invoices.deleted_message', 2),
|
||||
})
|
||||
resolve(response)
|
||||
})
|
||||
|
||||
4
resources/scripts/admin/stores/item.js
vendored
4
resources/scripts/admin/stores/item.js
vendored
@@ -141,7 +141,7 @@ export const useItemStore = (useWindow = false) => {
|
||||
|
||||
notificationStore.showNotification({
|
||||
type: 'success',
|
||||
message: global.tc('items.deleted_message', 1),
|
||||
message: global.t('items.deleted_message', 1),
|
||||
})
|
||||
|
||||
resolve(response)
|
||||
@@ -169,7 +169,7 @@ export const useItemStore = (useWindow = false) => {
|
||||
|
||||
notificationStore.showNotification({
|
||||
type: 'success',
|
||||
message: global.tc('items.deleted_message', 2),
|
||||
message: global.t('items.deleted_message', 2),
|
||||
})
|
||||
|
||||
resolve(response)
|
||||
|
||||
2
resources/scripts/admin/stores/payment.js
vendored
2
resources/scripts/admin/stores/payment.js
vendored
@@ -214,7 +214,7 @@ export const usePaymentStore = (useWindow = false) => {
|
||||
})
|
||||
notificationStore.showNotification({
|
||||
type: 'success',
|
||||
message: global.tc('payments.deleted_message', 2),
|
||||
message: global.t('payments.deleted_message', 2),
|
||||
})
|
||||
resolve(response)
|
||||
})
|
||||
|
||||
4
resources/scripts/admin/stores/users.js
vendored
4
resources/scripts/admin/stores/users.js
vendored
@@ -152,7 +152,7 @@ export const useUsersStore = (useWindow = false) => {
|
||||
this.users.splice(index, 1)
|
||||
notificationStore.showNotification({
|
||||
type: 'success',
|
||||
message: global.tc('users.deleted_message', 1),
|
||||
message: global.t('users.deleted_message', 1),
|
||||
})
|
||||
resolve(response)
|
||||
})
|
||||
@@ -177,7 +177,7 @@ export const useUsersStore = (useWindow = false) => {
|
||||
const notificationStore = useNotificationStore()
|
||||
notificationStore.showNotification({
|
||||
type: 'success',
|
||||
message: global.tc('users.deleted_message', 2),
|
||||
message: global.t('users.deleted_message', 2),
|
||||
})
|
||||
resolve(response)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user