MT#61834 Upgrade vue-i18n to v11

- "i18n.global. tc" changed by i18n.global.t
- $t(<string>, <language>) changed by $t(<string>, {},{ locale: <language>})

Change-Id: Ifc90213c76c5a82b80c7f7b0497db346752159ff
mr13.3
Hugo Zigha 3 months ago
parent 1697c9e483
commit b0ba5c9b58

@ -56,7 +56,7 @@
"terser": "^5.14.2", "terser": "^5.14.2",
"tiny-emitter": "2.1.0", "tiny-emitter": "2.1.0",
"vue": "3.5.13", "vue": "3.5.13",
"vue-i18n": "9.14.2", "vue-i18n": "11.0.1",
"vue-resource": "^1.5.1", "vue-resource": "^1.5.1",
"vue-router": "4.5.0", "vue-router": "4.5.0",
"vue-scrollto": "^2.18.2", "vue-scrollto": "^2.18.2",

@ -153,10 +153,10 @@ function handleResponseError (err) {
const code = _.get(err, 'response.data.code', null) const code = _.get(err, 'response.data.code', null)
let message = _.get(err, 'response.data.message', null) let message = _.get(err, 'response.data.message', null)
if (code === 403 && message === 'Invalid license') { if (code === 403 && message === 'Invalid license') {
message = i18n.global.tc('Contact your administrator to activate this functionality') message = i18n.global.t('Contact your administrator to activate this functionality')
} }
if (code === 403 && message === 'Password expired') { if (code === 403 && message === 'Password expired') {
message = i18n.global.tc('Password Expired') message = i18n.global.t('Password Expired')
return this.$router.push({ path: PATH_CHANGE_PASSWORD }) return this.$router.push({ path: PATH_CHANGE_PASSWORD })
} }

@ -22,7 +22,7 @@ export async function setFaxServerField (options) {
// searching for duplicates // searching for duplicates
const destinationsIds = options.value.map((d) => d.destination) const destinationsIds = options.value.map((d) => d.destination)
if ((new Set(destinationsIds)).size !== destinationsIds.length) { if ((new Set(destinationsIds)).size !== destinationsIds.length) {
throw Error(i18n.global.tc('The Destination Email is already used')) throw Error(i18n.global.t('The Destination Email is already used'))
} }
} }
return patchReplaceFull({ return patchReplaceFull({
@ -49,7 +49,7 @@ export async function setMailToFaxSettingField (options) {
// searching for duplicates // searching for duplicates
const destinationsIds = options.value.map((d) => d.destination) const destinationsIds = options.value.map((d) => d.destination)
if ((new Set(destinationsIds)).size !== destinationsIds.length) { if ((new Set(destinationsIds)).size !== destinationsIds.length) {
throw Error(i18n.global.tc('The Notify Email is already used')) throw Error(i18n.global.t('The Notify Email is already used'))
} }
} }
return patchReplaceFull({ return patchReplaceFull({

@ -28,7 +28,7 @@ export function getUnassignedSlots (id) {
const slotOptions = [] const slotOptions = []
unassignedSlots.forEach((slot) => { unassignedSlots.forEach((slot) => {
slotOptions.push({ slotOptions.push({
label: `${i18n.global.tc('Slot')} ${slot}`, label: `${i18n.global.t('Slot')} ${slot}`,
value: slot value: slot
}) })
}) })

@ -189,7 +189,7 @@ export function changeExpiredPassword (payload) {
resolve(result) resolve(result)
}).catch((err) => { }).catch((err) => {
if (err.response.status === 401) { if (err.response.status === 401) {
reject(new Error(`Unauthorized. ${i18n.global.tc('Wrong username or password')}`)) reject(new Error(`Unauthorized. ${i18n.global.t('Wrong username or password')}`))
} else if (err.response.status === 422) { } else if (err.response.status === 422) {
reject(_formatPasswordError(err.response.data.message)) reject(_formatPasswordError(err.response.data.message))
} else { } else {

@ -2,19 +2,19 @@ export default ({ app }) => {
app.config.globalProperties.$faxQualityOptions = [ app.config.globalProperties.$faxQualityOptions = [
{ {
get label () { get label () {
return app.i18n.global.tc('Normal') return app.i18n.global.t('Normal')
}, },
value: 'normal' value: 'normal'
}, },
{ {
get label () { get label () {
return app.i18n.global.tc('Fine') return app.i18n.global.t('Fine')
}, },
value: 'fine' value: 'fine'
}, },
{ {
get label () { get label () {
return app.i18n.global.tc('Super') return app.i18n.global.t('Super')
}, },
value: 'super' value: 'super'
} }

@ -31,7 +31,7 @@ export default async ({ app, store }) => {
callEvent.on('disconnected', ({ error, code }) => { callEvent.on('disconnected', ({ error, code }) => {
let errorMessage = null let errorMessage = null
if (error) { if (error) {
errorMessage = i18n.global.tc('WebSocket connection to kamailio lb failed with code {code}', { errorMessage = i18n.global.t('WebSocket connection to kamailio lb failed with code {code}', {
code code
}) })
} }

@ -37,7 +37,7 @@ export default {
}, },
saveLabel: { saveLabel: {
type: String, type: String,
default: i18n.global.tc('Save') default: i18n.global.t('Save')
} }
}, },
emits: ['changed'], emits: ['changed'],

@ -72,7 +72,7 @@ export default {
}, },
saveLabel: { saveLabel: {
type: String, type: String,
default: i18n.global.tc('Save') default: i18n.global.t('Save')
} }
}, },
emits: ['saved'], emits: ['saved'],

@ -51,23 +51,23 @@ export default {
return [ return [
{ {
value: 'en-US', value: 'en-US',
label: this.$t('English', 'en-US') label: this.$t('English', {}, { locale: 'en-US' })
}, },
{ {
value: 'de', value: 'de',
label: this.$t('German', 'de') label: this.$t('German', {}, { locale: 'de' })
}, },
{ {
value: 'es', value: 'es',
label: this.$t('Spanish', 'es') label: this.$t('Spanish', {}, { locale: 'es' })
}, },
{ {
value: 'fr', value: 'fr',
label: this.$t('French', 'fr') label: this.$t('French', {}, { locale: 'fr' })
}, },
{ {
value: 'it', value: 'it',
label: this.$t('Italian', 'it') label: this.$t('Italian', {}, { locale: 'it' })
} }
] ]
} }

@ -48,23 +48,23 @@ export default {
return [ return [
{ {
value: 'en-US', value: 'en-US',
label: i18n.global.tc('English', 'en-US') label: i18n.global.t('English', 1, { locale: 'en-US' })
}, },
{ {
value: 'de', value: 'de',
label: i18n.global.tc('German', 'de') label: i18n.global.t('German', 1, { locale: 'de' })
}, },
{ {
value: 'es', value: 'es',
label: i18n.global.tc('Spanish', 'es') label: i18n.global.t('Spanish', 1, { locale: 'es' })
}, },
{ {
value: 'fr', value: 'fr',
label: i18n.global.tc('French', 'fr') label: i18n.global.t('French', 1, { locale: 'fr' })
}, },
{ {
value: 'it', value: 'it',
label: i18n.global.tc('Italian', 'it') label: i18n.global.t('Italian', 1, { locale: 'it' })
} }
] ]
} }

@ -20,27 +20,27 @@ export function smartTime ($date) {
const diffMinutes = Math.floor(diffSeconds / 60) const diffMinutes = Math.floor(diffSeconds / 60)
const momentDate = moment(date) const momentDate = moment(date)
let seconds = i18n.global.tc('second') let seconds = i18n.global.t('second')
if (diffSeconds > 1) { if (diffSeconds > 1) {
seconds = i18n.global.tc('seconds') seconds = i18n.global.t('seconds')
} }
let minutes = 'minute' let minutes = 'minute'
if (diffSeconds > 120) { if (diffSeconds > 120) {
minutes = i18n.global.tc('minutes') minutes = i18n.global.t('minutes')
} }
if (diffSeconds < 60) { if (diffSeconds < 60) {
const descriptor = i18n.global.tc('ago') const descriptor = i18n.global.t('ago')
return `${diffSeconds} ${seconds} ${descriptor}` return `${diffSeconds} ${seconds} ${descriptor}`
} else if (diffSeconds < 3600) { } else if (diffSeconds < 3600) {
const descriptor = i18n.global.tc('ago') const descriptor = i18n.global.t('ago')
return `${diffMinutes} ${minutes} ${descriptor}` return `${diffMinutes} ${minutes} ${descriptor}`
} else if (isToday(date)) { } else if (isToday(date)) {
const descriptor = i18n.global.tc('Today') const descriptor = i18n.global.t('Today')
return `${descriptor}, ${momentDate.format('HH:mm')}` return `${descriptor}, ${momentDate.format('HH:mm')}`
} else if (isYesterday(date)) { } else if (isYesterday(date)) {
const descriptor = i18n.global.tc('Yesterday') const descriptor = i18n.global.t('Yesterday')
return `${descriptor}, ${momentDate.format('HH:mm')}` return `${descriptor}, ${momentDate.format('HH:mm')}`
} else if (isWithinLastWeek(date)) { } else if (isWithinLastWeek(date)) {
return momentDate.format('dddd, HH:mm') return momentDate.format('dddd, HH:mm')
@ -59,13 +59,13 @@ export const WeekdayMap = {
} }
export const WeekdayTranslationMap = { export const WeekdayTranslationMap = {
sunday: i18n.global.tc('Sunday'), sunday: i18n.global.t('Sunday'),
monday: i18n.global.tc('Monday'), monday: i18n.global.t('Monday'),
tuesday: i18n.global.tc('Tuesday'), tuesday: i18n.global.t('Tuesday'),
wednesday: i18n.global.tc('Wednesday'), wednesday: i18n.global.t('Wednesday'),
thursday: i18n.global.tc('Thursday'), thursday: i18n.global.t('Thursday'),
friday: i18n.global.tc('Friday'), friday: i18n.global.t('Friday'),
saturday: i18n.global.tc('Saturday') saturday: i18n.global.t('Saturday')
} }
export function weekday (weekdayNumber) { export function weekday (weekdayNumber) {

@ -12,41 +12,41 @@ export const DEFAULT_WEEKDAYS = [
export function getDayNameByNumber (dayNumber, isShortName = false) { export function getDayNameByNumber (dayNumber, isShortName = false) {
const daysNamesMap = [ const daysNamesMap = [
i18n.global.tc('Monday'), i18n.global.t('Monday'),
i18n.global.tc('Tuesday'), i18n.global.t('Tuesday'),
i18n.global.tc('Wednesday'), i18n.global.t('Wednesday'),
i18n.global.tc('Thursday'), i18n.global.t('Thursday'),
i18n.global.tc('Friday'), i18n.global.t('Friday'),
i18n.global.tc('Saturday'), i18n.global.t('Saturday'),
i18n.global.tc('Sunday') i18n.global.t('Sunday')
] ]
// NOTE: in some languages the short days names may be not just first two letters of the full day's name // NOTE: in some languages the short days names may be not just first two letters of the full day's name
const daysShortNamesMap = [ const daysShortNamesMap = [
i18n.global.tc('Mo'), i18n.global.t('Mo'),
i18n.global.tc('Tu'), i18n.global.t('Tu'),
i18n.global.tc('We'), i18n.global.t('We'),
i18n.global.tc('Th'), i18n.global.t('Th'),
i18n.global.tc('Fr'), i18n.global.t('Fr'),
i18n.global.tc('Sa'), i18n.global.t('Sa'),
i18n.global.tc('Su') i18n.global.t('Su')
] ]
return isShortName ? daysShortNamesMap[dayNumber] : daysNamesMap[dayNumber] return isShortName ? daysShortNamesMap[dayNumber] : daysNamesMap[dayNumber]
} }
export function getMonthNameByNumber (monthNumber) { export function getMonthNameByNumber (monthNumber) {
const monthsNamesMap = [ const monthsNamesMap = [
i18n.global.tc('January'), i18n.global.t('January'),
i18n.global.tc('February'), i18n.global.t('February'),
i18n.global.tc('March'), i18n.global.t('March'),
i18n.global.tc('April'), i18n.global.t('April'),
i18n.global.tc('May'), i18n.global.t('May'),
i18n.global.tc('June'), i18n.global.t('June'),
i18n.global.tc('July'), i18n.global.t('July'),
i18n.global.tc('August'), i18n.global.t('August'),
i18n.global.tc('September'), i18n.global.t('September'),
i18n.global.tc('October'), i18n.global.t('October'),
i18n.global.tc('November'), i18n.global.t('November'),
i18n.global.tc('December') i18n.global.t('December')
] ]
return monthsNamesMap[monthNumber] return monthsNamesMap[monthNumber]
@ -60,10 +60,10 @@ export function timeSetDateRange (times) {
try { try {
const hDateset = kamailioDatesetToHuman(times) const hDateset = kamailioDatesetToHuman(times)
return (hDateset.length === 0) return (hDateset.length === 0)
? i18n.global.tc('empty') ? i18n.global.t('empty')
: hDateset.map((d) => (d.from === d.to) ? d.from : `${d.from}-${d.to}`).join(', ') : hDateset.map((d) => (d.from === d.to) ? d.from : `${d.from}-${d.to}`).join(', ')
} catch (e) { } catch (e) {
return i18n.global.tc('data error') return i18n.global.t('data error')
} }
} }

@ -25,7 +25,7 @@ export function showGlobalError (messageOrException, timeout = 3000) {
errorMessage = messageOrException?.response?.data?.message || messageOrException?.message errorMessage = messageOrException?.response?.data?.message || messageOrException?.message
} }
if (errorMessage === '' || errorMessage === undefined || errorMessage === null) { if (errorMessage === '' || errorMessage === undefined || errorMessage === null) {
errorMessage = i18n.global.tc('Unknown error') errorMessage = i18n.global.t('Unknown error')
} }
return Notify.create({ return Notify.create({
message: errorMessage, message: errorMessage,
@ -73,14 +73,14 @@ export function askForNotificationPermission () {
if (_.isObject(Notification)) { if (_.isObject(Notification)) {
Notification.requestPermission().then((perms) => { Notification.requestPermission().then((perms) => {
if (perms === 'denied' || perms === 'default') { if (perms === 'denied' || perms === 'default') {
showPermanentGlobalWarning(i18n.global.tc('You have blocked incoming call notifications.')) showPermanentGlobalWarning(i18n.global.t('You have blocked incoming call notifications.'))
} }
resolve() resolve()
}).catch((err) => { }).catch((err) => {
reject(err) reject(err)
}) })
} else { } else {
showPermanentGlobalWarning(i18n.global.tc('Incoming call notifications are not supported.')) showPermanentGlobalWarning(i18n.global.t('Incoming call notifications are not supported.'))
resolve() resolve()
} }
}) })
@ -93,7 +93,7 @@ export function enableIncomingCallNotifications () {
if (navigator.serviceWorker) { if (navigator.serviceWorker) {
return navigator.serviceWorker.register(serviceWorkerPath) return navigator.serviceWorker.register(serviceWorkerPath)
} }
showPermanentGlobalWarning(i18n.global.tc('Incoming call notifications are not supported.')) showPermanentGlobalWarning(i18n.global.t('Incoming call notifications are not supported.'))
resolve() resolve()
}).then(() => { }).then(() => {
return askForNotificationPermission() return askForNotificationPermission()
@ -102,7 +102,7 @@ export function enableIncomingCallNotifications () {
}).catch((err) => { }).catch((err) => {
// eslint-disable-next-line no-console // eslint-disable-next-line no-console
console.debug(err) console.debug(err)
showPermanentGlobalWarning(i18n.global.tc('Could not enable incoming call notifications.')) showPermanentGlobalWarning(i18n.global.t('Could not enable incoming call notifications.'))
}) })
}) })
} }
@ -111,7 +111,7 @@ export function showCallNotification (number) {
if (navigator.serviceWorker) { if (navigator.serviceWorker) {
navigator.serviceWorker.getRegistration(serviceWorkerPath).then((registration) => { navigator.serviceWorker.getRegistration(serviceWorkerPath).then((registration) => {
if (registration && registration.showNotification) { if (registration && registration.showNotification) {
registration.showNotification(i18n.global.tc('Incoming call from {number}', { registration.showNotification(i18n.global.t('Incoming call from {number}', {
number number
}), { }), {
requireInteraction: true, requireInteraction: true,

@ -63,7 +63,7 @@ const routes = [
component: CscPageDashboard, component: CscPageDashboard,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('Dashboard') return i18n.global.t('Dashboard')
} }
} }
}, },
@ -72,7 +72,7 @@ const routes = [
component: CscPageHome, component: CscPageHome,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('Start new call') return i18n.global.t('Start new call')
}, },
subscriberProfile: ['csc_calls'] subscriberProfile: ['csc_calls']
} }
@ -84,10 +84,10 @@ const routes = [
props: true, props: true,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('Conversations') return i18n.global.t('Conversations')
}, },
get subtitle () { get subtitle () {
return i18n.global.tc('Calls, Faxes, VoiceMails') return i18n.global.t('Calls, Faxes, VoiceMails')
}, },
profileAttribute: PROFILE_ATTRIBUTE_MAP.conversations profileAttribute: PROFILE_ATTRIBUTE_MAP.conversations
} }
@ -98,7 +98,7 @@ const routes = [
component: CscPageSubscriberPhonebook, component: CscPageSubscriberPhonebook,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('Subscriber Phonebook') return i18n.global.t('Subscriber Phonebook')
}, },
license: LICENSES.phonebook license: LICENSES.phonebook
} }
@ -108,7 +108,7 @@ const routes = [
component: CscPageSubscriberPhonebookAdd, component: CscPageSubscriberPhonebookAdd,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('Add Phonebook') return i18n.global.t('Add Phonebook')
} }
} }
}, },
@ -117,7 +117,7 @@ const routes = [
component: CscPageSubscriberPhonebookDetails, component: CscPageSubscriberPhonebookDetails,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('Subscriber Phonebook') return i18n.global.t('Subscriber Phonebook')
} }
} }
}, },
@ -126,7 +126,7 @@ const routes = [
component: CscPageCf, component: CscPageCf,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('Call Forwarding') return i18n.global.t('Call Forwarding')
} }
} }
}, },
@ -135,10 +135,10 @@ const routes = [
component: CscPageCallBlockingIncoming, component: CscPageCallBlockingIncoming,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('Call Blocking') return i18n.global.t('Call Blocking')
}, },
get subtitle () { get subtitle () {
return i18n.global.tc('Incoming') return i18n.global.t('Incoming')
}, },
profileAttributes: PROFILE_ATTRIBUTES_MAP.callBlockingIncoming profileAttributes: PROFILE_ATTRIBUTES_MAP.callBlockingIncoming
} }
@ -148,10 +148,10 @@ const routes = [
component: CscPageCallBlockingOutgoing, component: CscPageCallBlockingOutgoing,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('Call Blocking') return i18n.global.t('Call Blocking')
}, },
get subtitle () { get subtitle () {
return i18n.global.tc('Outgoing') return i18n.global.t('Outgoing')
}, },
profileAttributes: PROFILE_ATTRIBUTES_MAP.callBlockingOutgoing profileAttributes: PROFILE_ATTRIBUTES_MAP.callBlockingOutgoing
} }
@ -161,10 +161,10 @@ const routes = [
component: CscPageCallBlockingPrivacy, component: CscPageCallBlockingPrivacy,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('Call Blocking') return i18n.global.t('Call Blocking')
}, },
get subtitle () { get subtitle () {
return i18n.global.tc('Privacy') return i18n.global.t('Privacy')
}, },
profileAttributes: PROFILE_ATTRIBUTES_MAP.callBlockingPrivacy profileAttributes: PROFILE_ATTRIBUTES_MAP.callBlockingPrivacy
} }
@ -174,10 +174,10 @@ const routes = [
component: CscPageCallRecording, component: CscPageCallRecording,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('Recordings') return i18n.global.t('Recordings')
}, },
get subtitle () { get subtitle () {
return i18n.global.tc('Call recordings') return i18n.global.t('Call recordings')
}, },
profileAttribute: PROFILE_ATTRIBUTE_MAP.recordings profileAttribute: PROFILE_ATTRIBUTE_MAP.recordings
} }
@ -187,10 +187,10 @@ const routes = [
component: CscPageReminder, component: CscPageReminder,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('Reminder') return i18n.global.t('Reminder')
}, },
get subtitle () { get subtitle () {
return i18n.global.tc('Set your personal alarm') return i18n.global.t('Set your personal alarm')
}, },
profileAttribute: PROFILE_ATTRIBUTE_MAP.reminder profileAttribute: PROFILE_ATTRIBUTE_MAP.reminder
} }
@ -200,10 +200,10 @@ const routes = [
component: CscPageSpeedDial, component: CscPageSpeedDial,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('Speed Dial') return i18n.global.t('Speed Dial')
}, },
get subtitle () { get subtitle () {
return i18n.global.tc('Set your speed dials') return i18n.global.t('Set your speed dials')
}, },
profileAttribute: PROFILE_ATTRIBUTE_MAP.speedDial profileAttribute: PROFILE_ATTRIBUTE_MAP.speedDial
} }
@ -213,10 +213,10 @@ const routes = [
component: CscPagePbxStatisticsCdr, component: CscPagePbxStatisticsCdr,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('PBX Statistics') return i18n.global.t('PBX Statistics')
}, },
get subtitle () { get subtitle () {
return i18n.global.tc('CDR') return i18n.global.t('CDR')
} }
}, },
license: LICENSES.pbx license: LICENSES.pbx
@ -226,10 +226,10 @@ const routes = [
component: CscPagePbxGroups, component: CscPagePbxGroups,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('PBX Configuration') return i18n.global.t('PBX Configuration')
}, },
get subtitle () { get subtitle () {
return i18n.global.tc('Groups') return i18n.global.t('Groups')
}, },
profileAttribute: PROFILE_ATTRIBUTE_MAP.huntGroups profileAttribute: PROFILE_ATTRIBUTE_MAP.huntGroups
} }
@ -239,10 +239,10 @@ const routes = [
component: CscPagePbxGroupDetails, component: CscPagePbxGroupDetails,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('PBX Configuration') return i18n.global.t('PBX Configuration')
}, },
get subtitle () { get subtitle () {
return i18n.global.tc('Groups') return i18n.global.t('Groups')
} }
} }
}, },
@ -251,10 +251,10 @@ const routes = [
component: CscPagePbxSeats, component: CscPagePbxSeats,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('PBX Configuration') return i18n.global.t('PBX Configuration')
}, },
get subtitle () { get subtitle () {
return i18n.global.tc('Seats') return i18n.global.t('Seats')
} }
} }
}, },
@ -263,10 +263,10 @@ const routes = [
component: CscPageCustomerPhonebook, component: CscPageCustomerPhonebook,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('PBX Configuration') return i18n.global.t('PBX Configuration')
}, },
get subtitle () { get subtitle () {
return i18n.global.tc('Customer Phonebook') return i18n.global.t('Customer Phonebook')
} }
} }
}, },
@ -275,7 +275,7 @@ const routes = [
component: CscPageCustomerPhonebookAdd, component: CscPageCustomerPhonebookAdd,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('Add Phonebook') return i18n.global.t('Add Phonebook')
} }
} }
}, },
@ -284,7 +284,7 @@ const routes = [
component: CscPageCustomerPhonebookUpload, component: CscPageCustomerPhonebookUpload,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('Upload CSV') return i18n.global.t('Upload CSV')
} }
} }
}, },
@ -293,7 +293,7 @@ const routes = [
component: CscPageCustomerPhonebookDetails, component: CscPageCustomerPhonebookDetails,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('Customer Phonebook') return i18n.global.t('Customer Phonebook')
} }
} }
}, },
@ -302,10 +302,10 @@ const routes = [
component: CscPagePbxDeviceDetails, component: CscPagePbxDeviceDetails,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('PBX Configuration') return i18n.global.t('PBX Configuration')
}, },
get subtitle () { get subtitle () {
return i18n.global.tc('Devices') return i18n.global.t('Devices')
} }
} }
}, },
@ -314,10 +314,10 @@ const routes = [
component: CscPagePbxSeatDetails, component: CscPagePbxSeatDetails,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('PBX Configuration') return i18n.global.t('PBX Configuration')
}, },
get subtitle () { get subtitle () {
return i18n.global.tc('Seats') return i18n.global.t('Seats')
} }
} }
}, },
@ -326,10 +326,10 @@ const routes = [
component: CscPagePbxDevices, component: CscPagePbxDevices,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('PBX Configuration') return i18n.global.t('PBX Configuration')
}, },
get subtitle () { get subtitle () {
return i18n.global.tc('Devices') return i18n.global.t('Devices')
}, },
profileAttribute: PROFILE_ATTRIBUTE_MAP.deviceProvisioning profileAttribute: PROFILE_ATTRIBUTE_MAP.deviceProvisioning
} }
@ -339,10 +339,10 @@ const routes = [
component: CscPagePbxCallQueues, component: CscPagePbxCallQueues,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('PBX Configuration') return i18n.global.t('PBX Configuration')
}, },
get subtitle () { get subtitle () {
return i18n.global.tc('Call Queues') return i18n.global.t('Call Queues')
}, },
profileAttributes: PROFILE_ATTRIBUTES_MAP.extSettingsCallQueue profileAttributes: PROFILE_ATTRIBUTES_MAP.extSettingsCallQueue
} }
@ -352,10 +352,10 @@ const routes = [
component: CscPagePbxSoundSets, component: CscPagePbxSoundSets,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('PBX Configuration') return i18n.global.t('PBX Configuration')
}, },
get subtitle () { get subtitle () {
return i18n.global.tc('Sound Sets') return i18n.global.t('Sound Sets')
}, },
profileAttribute: PROFILE_ATTRIBUTE_MAP.soundSet profileAttribute: PROFILE_ATTRIBUTE_MAP.soundSet
} }
@ -365,10 +365,10 @@ const routes = [
component: CscPagePbxSoundSetDetails, component: CscPagePbxSoundSetDetails,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('PBX Configuration') return i18n.global.t('PBX Configuration')
}, },
get subtitle () { get subtitle () {
return i18n.global.tc('Sound Sets') return i18n.global.t('Sound Sets')
} }
} }
}, },
@ -377,10 +377,10 @@ const routes = [
component: CscPagePbxMsConfigs, component: CscPagePbxMsConfigs,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('PBX Configuration') return i18n.global.t('PBX Configuration')
}, },
get subtitle () { get subtitle () {
return i18n.global.tc('Manager Secretary') return i18n.global.t('Manager Secretary')
}, },
profileAttribute: PROFILE_ATTRIBUTE_MAP.manager_secretary profileAttribute: PROFILE_ATTRIBUTE_MAP.manager_secretary
} }
@ -390,10 +390,10 @@ const routes = [
component: CscPagePbxAutoAttendant, component: CscPagePbxAutoAttendant,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('PBX Configuration') return i18n.global.t('PBX Configuration')
}, },
get subtitle () { get subtitle () {
return i18n.global.tc('Auto Attendant') return i18n.global.t('Auto Attendant')
}, },
profileAttribute: PROFILE_ATTRIBUTE_MAP.auto_attendant profileAttribute: PROFILE_ATTRIBUTE_MAP.auto_attendant
} }
@ -403,10 +403,10 @@ const routes = [
component: CscPageCustomerPreferences, component: CscPageCustomerPreferences,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('PBX Configuration') return i18n.global.t('PBX Configuration')
}, },
get subtitle () { get subtitle () {
return i18n.global.tc('Customer Preferences') return i18n.global.t('Customer Preferences')
} }
} }
}, },
@ -415,10 +415,10 @@ const routes = [
component: CscPageVoicebox, component: CscPageVoicebox,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('Voicebox') return i18n.global.t('Voicebox')
}, },
get subtitle () { get subtitle () {
return i18n.global.tc('Set your voicebox settings') return i18n.global.t('Set your voicebox settings')
}, },
profileAttribute: PROFILE_ATTRIBUTE_MAP.voiceMail profileAttribute: PROFILE_ATTRIBUTE_MAP.voiceMail
} }
@ -428,10 +428,10 @@ const routes = [
component: CscPageFaxSettings, component: CscPageFaxSettings,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('Fax Settings') return i18n.global.t('Fax Settings')
}, },
get subtitle () { get subtitle () {
return i18n.global.tc('Set your fax settings') return i18n.global.t('Set your fax settings')
}, },
profileAttribute: PROFILE_ATTRIBUTE_MAP.faxServer, profileAttribute: PROFILE_ATTRIBUTE_MAP.faxServer,
license: LICENSES.fax license: LICENSES.fax
@ -442,10 +442,10 @@ const routes = [
component: CscPageUserSettings, component: CscPageUserSettings,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('User settings') return i18n.global.t('User settings')
}, },
get subtitle () { get subtitle () {
return i18n.global.tc('Change password') return i18n.global.t('Change password')
} }
} }
}, },
@ -454,10 +454,10 @@ const routes = [
component: CscPageCallSettings, component: CscPageCallSettings,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('Call Settings') return i18n.global.t('Call Settings')
}, },
get subtitle () { get subtitle () {
return i18n.global.tc('Call Settings') return i18n.global.t('Call Settings')
}, },
profileAttributes: PROFILE_ATTRIBUTES_MAP.callSettings profileAttributes: PROFILE_ATTRIBUTES_MAP.callSettings
} }
@ -467,10 +467,10 @@ const routes = [
component: CscPagePbxSettingsCallQueues, component: CscPagePbxSettingsCallQueues,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('Extension Settings') return i18n.global.t('Extension Settings')
}, },
get subtitle () { get subtitle () {
return i18n.global.tc('Call Queues') return i18n.global.t('Call Queues')
}, },
profileAttributes: PROFILE_ATTRIBUTES_MAP.extSettingsCallQueue profileAttributes: PROFILE_ATTRIBUTES_MAP.extSettingsCallQueue
} }
@ -480,10 +480,10 @@ const routes = [
component: CscPagePbxSettingsMsConfigs, component: CscPagePbxSettingsMsConfigs,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('Extension Settings') return i18n.global.t('Extension Settings')
}, },
get subtitle () { get subtitle () {
return i18n.global.tc('Manager Secretary') return i18n.global.t('Manager Secretary')
}, },
profileAttribute: PROFILE_ATTRIBUTE_MAP.manager_secretary profileAttribute: PROFILE_ATTRIBUTE_MAP.manager_secretary
} }
@ -493,10 +493,10 @@ const routes = [
component: CscPagePbxSettingsAutoAttendant, component: CscPagePbxSettingsAutoAttendant,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('Extension Settings') return i18n.global.t('Extension Settings')
}, },
get subtitle () { get subtitle () {
return i18n.global.tc('Auto Attendant') return i18n.global.t('Auto Attendant')
}, },
profileAttribute: PROFILE_ATTRIBUTE_MAP.auto_attendant profileAttribute: PROFILE_ATTRIBUTE_MAP.auto_attendant
} }
@ -507,10 +507,10 @@ const routes = [
component: CscPageRegisteredDevices, component: CscPageRegisteredDevices,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('Registered Devices') return i18n.global.t('Registered Devices')
}, },
get subtitle () { get subtitle () {
return i18n.global.tc('List of registered devices for the subscriber') return i18n.global.t('List of registered devices for the subscriber')
}, },
profileAttribute: PROFILE_ATTRIBUTE_MAP.registeredDevices profileAttribute: PROFILE_ATTRIBUTE_MAP.registeredDevices
} }
@ -519,8 +519,8 @@ const routes = [
path: '/customer/:pathMatch(.*)', path: '/customer/:pathMatch(.*)',
component: () => import('pages/Proxy'), component: () => import('pages/Proxy'),
meta: { meta: {
title: i18n.global.tc('Customer Details'), title: i18n.global.t('Customer Details'),
subtitle: i18n.global.tc('Customer Details') subtitle: i18n.global.t('Customer Details')
} }
}, },
{ {
@ -528,7 +528,7 @@ const routes = [
component: CscPageError404, component: CscPageError404,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('Page not found') return i18n.global.t('Page not found')
} }
} }
} }
@ -539,7 +539,7 @@ const routes = [
component: CscPageLogin, component: CscPageLogin,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('Subscriber Sign In') return i18n.global.t('Subscriber Sign In')
} }
} }
}, },
@ -558,7 +558,7 @@ const routes = [
props: getToken, props: getToken,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('Reset Password') return i18n.global.t('Reset Password')
}, },
permission: 'public' permission: 'public'
} }
@ -580,7 +580,7 @@ const routes = [
component: CscPageError404, component: CscPageError404,
meta: { meta: {
get title () { get title () {
return i18n.global.tc('Page not found') return i18n.global.t('Page not found')
} }
} }
} }

@ -126,9 +126,9 @@ export async function deleteMapping ({ dispatch, commit, state, rootGetters }, p
await cfDeleteDestinationSet(payload.destinationset_id) await cfDeleteDestinationSet(payload.destinationset_id)
} catch (e) { } catch (e) {
if (e.code === 404 && e.message === 'Entity \'cfdestinationset\' not found.') { if (e.code === 404 && e.message === 'Entity \'cfdestinationset\' not found.') {
// This happens when entity was set by Admin therefore current // This happens when CF was set by Admin therefore current
// csc user doesn't have rights to delete the entity from DB. // csc user doesn't have rights to delete the entity
showGlobalWarning(i18n.global.tc('Entity belongs to admin')) showGlobalWarning(i18n.global.t('Entity belongs to admin'))
} else { } else {
showGlobalError(e.message) showGlobalError(e.message)
} }
@ -303,7 +303,7 @@ export async function updateBNumberSet ({ dispatch, commit, rootGetters }, paylo
if (e.code === 404 && e.message === 'Entity \'bnumberset\' not found.') { if (e.code === 404 && e.message === 'Entity \'bnumberset\' not found.') {
// This happens when entity was set by Admin therefore current // This happens when entity was set by Admin therefore current
// csc user doesn't have rights to edit the entity. // csc user doesn't have rights to edit the entity.
showGlobalWarning(i18n.global.tc('Entity belongs to admin')) showGlobalWarning(i18n.global.t('Entity belongs to admin'))
} else { } else {
showGlobalError(e.message) showGlobalError(e.message)
} }
@ -332,7 +332,7 @@ export async function deleteBNumberSet ({ dispatch, commit, rootGetters, state }
// This happens when entity was set by Admin therefore current // This happens when entity was set by Admin therefore current
// csc user doesn't have rights to delete the entity from DB. // csc user doesn't have rights to delete the entity from DB.
// In this scenario the b-number is only removed from the mappings. // In this scenario the b-number is only removed from the mappings.
showGlobalWarning(i18n.global.tc('Entity belongs to admin')) showGlobalWarning(i18n.global.t('Entity belongs to admin'))
} else { } else {
showGlobalError(e.message) showGlobalError(e.message)
} }
@ -421,9 +421,9 @@ export async function updateSourceSet ({ dispatch, commit, rootGetters }, payloa
}) })
} catch (e) { } catch (e) {
if (e.code === 404 && e.message === 'Entity \'sourceset\' not found.') { if (e.code === 404 && e.message === 'Entity \'sourceset\' not found.') {
// This happens when entity was set by Admin therefore current // This happens when CF was set by Admin therefore current
// csc user doesn't have rights to edit the entity. // csc user doesn't have rights to delete the entity
showGlobalWarning(i18n.global.tc('Entity belongs to admin')) showGlobalWarning(i18n.global.t('Entity belongs to admin'))
} else { } else {
showGlobalError(e.message) showGlobalError(e.message)
} }
@ -452,7 +452,7 @@ export async function deleteSourceSet ({ dispatch, commit, rootGetters, state },
// This happens when entity was set by Admin therefore current // This happens when entity was set by Admin therefore current
// csc user doesn't have rights to delete the entity from DB. // csc user doesn't have rights to delete the entity from DB.
// In this scenario the sources is only removed from the mappings. // In this scenario the sources is only removed from the mappings.
showGlobalWarning(i18n.global.tc('Entity belongs to admin')) showGlobalWarning(i18n.global.t('Entity belongs to admin'))
// Force reload of SourceSets // Force reload of SourceSets
} else { } else {
throw e throw e
@ -559,10 +559,9 @@ export async function deleteTimeSet ({ dispatch, commit, rootGetters, state }, p
await cfDeleteTimeSet(payload.id) await cfDeleteTimeSet(payload.id)
} catch (e) { } catch (e) {
if (e.code === 404 && e.message === 'Entity \'cftimeset\' not found.') { if (e.code === 404 && e.message === 'Entity \'cftimeset\' not found.') {
// This happens when entity was set by Admin therefore current // This happens when CF was set by Admin therefore current
// csc user doesn't have rights to delete the entity from DB. // csc user doesn't have rights to delete the entity
// In this case entity is only removed from the mappings. showGlobalWarning(i18n.global.t('Entity belongs to admin'))
showGlobalWarning(i18n.global.tc('Entity belongs to admin'))
} else { } else {
showGlobalError(e.message) showGlobalError(e.message)
} }
@ -642,9 +641,9 @@ export async function updateTimeSetDateRange ({ dispatch, commit }, payload) {
await cfUpdateTimeSetDateRange(payload.id, payload.date) await cfUpdateTimeSetDateRange(payload.id, payload.date)
} catch (e) { } catch (e) {
if (e.code === 404 && e.message === 'Entity \'timeset\' not found.') { if (e.code === 404 && e.message === 'Entity \'timeset\' not found.') {
// This happens when entity was set by Admin therefore current // This happens when CF was set by Admin therefore current
// csc user doesn't have rights to edit the entity // csc user doesn't have rights to delete the entity
showGlobalWarning(i18n.global.tc('Entity belongs to admin')) showGlobalWarning(i18n.global.t('Entity belongs to admin'))
} else { } else {
showGlobalError(e.message) showGlobalError(e.message)
} }
@ -682,9 +681,9 @@ export async function updateTimeSetWeekdays ({ dispatch, commit }, payload) {
await cfUpdateTimeSetWeekdays(payload.id, payload.weekdays) await cfUpdateTimeSetWeekdays(payload.id, payload.weekdays)
} catch (e) { } catch (e) {
if (e.code === 404 && e.message === 'Entity \'timeset\' not found.') { if (e.code === 404 && e.message === 'Entity \'timeset\' not found.') {
// This happens when entity was set by Admin therefore current // This happens when CF was set by Admin therefore current
// csc user doesn't have rights to edit the entity // csc user doesn't have rights to delete the entity
showGlobalWarning(i18n.global.tc('Entity belongs to admin')) showGlobalWarning(i18n.global.t('Entity belongs to admin'))
} else { } else {
showGlobalError(e.message) showGlobalError(e.message)
} }

@ -35,7 +35,7 @@ export default {
context.commit('localMediaSuccess', callGetLocalMediaStreamId()) context.commit('localMediaSuccess', callGetLocalMediaStreamId())
} else { } else {
context.commit('inputNumber') context.commit('inputNumber')
showGlobalError(i18n.global.tc('No microphone authorized.')) showGlobalError(i18n.global.t('No microphone authorized.'))
} }
}, },
async accept (context, localMedia) { async accept (context, localMedia) {

@ -12,25 +12,25 @@ export const CallState = {
} }
export const CallStateTitle = { export const CallStateTitle = {
get input () { get input () {
return i18n.global.tc('Start new call') return i18n.global.t('Start new call')
}, },
get initiating () { get initiating () {
return i18n.global.tc('Calling') return i18n.global.t('Calling')
}, },
get ringing () { get ringing () {
return i18n.global.tc('Ringing at') return i18n.global.t('Ringing at')
}, },
get incoming () { get incoming () {
return i18n.global.tc('Incoming call from') return i18n.global.t('Incoming call from')
}, },
get established () { get established () {
return i18n.global.tc('In call with') return i18n.global.t('In call with')
}, },
get ended () { get ended () {
return i18n.global.tc('Call ended') return i18n.global.t('Call ended')
}, },
get hold () { get hold () {
return i18n.global.tc('Call holded') return i18n.global.t('Call holded')
} }
} }

@ -17,7 +17,7 @@ export default {
}, },
createFaxError (state) { createFaxError (state) {
return state.createFaxError || return state.createFaxError ||
i18n.global.tc('An error occured while trying to send the fax. Please try again') i18n.global.t('An error occured while trying to send the fax. Please try again')
} }
}, },
mutations: { mutations: {

@ -10,7 +10,7 @@ export default {
}, },
reloadItemsError (state) { reloadItemsError (state) {
return state.reloadItemsError || return state.reloadItemsError ||
i18n.global.tc('Reloading conversation items failed') i18n.global.t('Reloading conversation items failed')
}, },
playVoiceMailState (state) { playVoiceMailState (state) {
return (id) => { return (id) => {

@ -66,7 +66,7 @@ export default {
}, },
getCallQueueRemoveDialogMessage (state) { getCallQueueRemoveDialogMessage (state) {
if (state.callQueueRemoving !== null) { if (state.callQueueRemoving !== null) {
return i18n.global.tc('You are about to remove call queue for {subscriber}', { return i18n.global.t('You are about to remove call queue for {subscriber}', {
subscriber: state.subscriberMap[state.callQueueRemoving.id].display_name subscriber: state.subscriberMap[state.callQueueRemoving.id].display_name
}) })
} }
@ -88,18 +88,18 @@ export default {
return state.callQueueUpdatingField return state.callQueueUpdatingField
}, },
getCallQueueCreationToastMessage (state, getters) { getCallQueueCreationToastMessage (state, getters) {
return i18n.global.tc('Created call queue for {callQueue} successfully', { return i18n.global.t('Created call queue for {callQueue} successfully', {
callQueue: getters.getCallQueueCreatingName callQueue: getters.getCallQueueCreatingName
}) })
}, },
getCallQueueUpdateToastMessage (state, getters) { getCallQueueUpdateToastMessage (state, getters) {
return i18n.global.tc('Updated {field} for call queue {callQueue} successfully', { return i18n.global.t('Updated {field} for call queue {callQueue} successfully', {
callQueue: getters.getCallQueueUpdatingName, callQueue: getters.getCallQueueUpdatingName,
field: getters.getCallQueueUpdatingField field: getters.getCallQueueUpdatingField
}) })
}, },
getCallQueueRemovalToastMessage (state, getters) { getCallQueueRemovalToastMessage (state, getters) {
return i18n.global.tc('Removed call queue for {callQueue} successfully', { return i18n.global.t('Removed call queue for {callQueue} successfully', {
callQueue: getters.getCallQueueRemovingName callQueue: getters.getCallQueueRemovingName
}) })
} }

@ -49,12 +49,12 @@ export default {
return _.get(state, 'deviceCreating.stationName', '') return _.get(state, 'deviceCreating.stationName', '')
}, },
getDeviceCreationToastMessage (state, getters) { getDeviceCreationToastMessage (state, getters) {
return i18n.global.tc('Created device {device} successfully', { return i18n.global.t('Created device {device} successfully', {
device: getters.getDeviceCreatingName device: getters.getDeviceCreatingName
}) })
}, },
getDevicePreferencesUpdateToastMessage (state, getters) { getDevicePreferencesUpdateToastMessage (state, getters) {
return i18n.global.tc('Updated {field} successfully', { return i18n.global.t('Updated {field} successfully', {
field: getters.getDevicePreferencesUpdatingField field: getters.getDevicePreferencesUpdatingField
}) })
}, },
@ -66,7 +66,7 @@ export default {
}, },
getDeviceRemoveDialogMessage (state, getters) { getDeviceRemoveDialogMessage (state, getters) {
if (getters.isDeviceRemoving) { if (getters.isDeviceRemoving) {
return i18n.global.tc('You are about to remove device {device}', { return i18n.global.t('You are about to remove device {device}', {
device: getters.getDeviceRemovingName device: getters.getDeviceRemovingName
}) })
} }
@ -76,12 +76,12 @@ export default {
return _.get(state, 'deviceRemoving.station_name', '') return _.get(state, 'deviceRemoving.station_name', '')
}, },
getDeviceRemovalToastMessage (state, getters) { getDeviceRemovalToastMessage (state, getters) {
return i18n.global.tc('Removed device {device} successfully', { return i18n.global.t('Removed device {device} successfully', {
device: getters.getDeviceRemovingName device: getters.getDeviceRemovingName
}) })
}, },
getDeviceUpdateToastMessage (state, getters) { getDeviceUpdateToastMessage (state, getters) {
return i18n.global.tc('Updated {field} for device {device} successfully', { return i18n.global.t('Updated {field} for device {device} successfully', {
device: getters.getDeviceUpdatingName, device: getters.getDeviceUpdatingName,
field: getters.getDeviceUpdatingField field: getters.getDeviceUpdatingField
}) })
@ -340,7 +340,7 @@ export default {
setDeviceStationName (context, options) { setDeviceStationName (context, options) {
context.commit('deviceUpdateRequesting', { context.commit('deviceUpdateRequesting', {
deviceId: options.deviceId, deviceId: options.deviceId,
deviceField: i18n.global.tc('Station name') deviceField: i18n.global.t('Station name')
}) })
setDeviceStationName(options.deviceId, options.stationName).then((device) => { setDeviceStationName(options.deviceId, options.stationName).then((device) => {
context.commit('deviceUpdateSucceeded', device) context.commit('deviceUpdateSucceeded', device)
@ -351,7 +351,7 @@ export default {
setDeviceIdentifier (context, options) { setDeviceIdentifier (context, options) {
context.commit('deviceUpdateRequesting', { context.commit('deviceUpdateRequesting', {
deviceId: options.deviceId, deviceId: options.deviceId,
deviceField: i18n.global.tc('MAC address') deviceField: i18n.global.t('MAC address')
}) })
setDeviceIdentifier(options.deviceId, options.identifier).then((device) => { setDeviceIdentifier(options.deviceId, options.identifier).then((device) => {
context.commit('deviceUpdateSucceeded', device) context.commit('deviceUpdateSucceeded', device)
@ -362,7 +362,7 @@ export default {
setDeviceProfile (context, options) { setDeviceProfile (context, options) {
context.commit('deviceUpdateRequesting', { context.commit('deviceUpdateRequesting', {
deviceId: options.deviceId, deviceId: options.deviceId,
deviceField: i18n.global.tc('Phone model') deviceField: i18n.global.t('Phone model')
}) })
setDeviceProfile(options.deviceId, options.profileId).then((device) => { setDeviceProfile(options.deviceId, options.profileId).then((device) => {
context.commit('deviceUpdateSucceeded', device) context.commit('deviceUpdateSucceeded', device)
@ -373,7 +373,7 @@ export default {
setDeviceKeys (context, options) { setDeviceKeys (context, options) {
context.commit('deviceUpdateRequesting', { context.commit('deviceUpdateRequesting', {
deviceId: options.deviceId, deviceId: options.deviceId,
deviceField: i18n.global.tc('Lamps/Keys') deviceField: i18n.global.t('Lamps/Keys')
}) })
setDeviceKeys(options.deviceId, options.keys).then((device) => { setDeviceKeys(options.deviceId, options.keys).then((device) => {
context.commit('deviceUpdateSucceeded', device) context.commit('deviceUpdateSucceeded', device)
@ -384,7 +384,7 @@ export default {
setAdminName (context, options) { setAdminName (context, options) {
context.commit('devicePreferencesUpdateRequesting', { context.commit('devicePreferencesUpdateRequesting', {
deviceId: options.deviceId, deviceId: options.deviceId,
devicePreferencesField: i18n.global.tc('Admin name') devicePreferencesField: i18n.global.t('Admin name')
}) })
setPreferenceDevice(options.deviceId, options.adminName, 'admin_name').then((device) => { setPreferenceDevice(options.deviceId, options.adminName, 'admin_name').then((device) => {
context.commit('devicePreferencesUpdateSucceeded', device) context.commit('devicePreferencesUpdateSucceeded', device)
@ -395,7 +395,7 @@ export default {
setFW (context, options) { setFW (context, options) {
context.commit('devicePreferencesUpdateRequesting', { context.commit('devicePreferencesUpdateRequesting', {
deviceId: options.deviceId, deviceId: options.deviceId,
devicePreferencesField: i18n.global.tc('FW Upgrade disable') devicePreferencesField: i18n.global.t('FW Upgrade disable')
}) })
setPreferenceDevice(options.deviceId, options.FWupg, 'FW_upg_dis').then((device) => { setPreferenceDevice(options.deviceId, options.FWupg, 'FW_upg_dis').then((device) => {
context.commit('devicePreferencesUpdateSucceeded', device) context.commit('devicePreferencesUpdateSucceeded', device)
@ -406,7 +406,7 @@ export default {
setGui (context, options) { setGui (context, options) {
context.commit('devicePreferencesUpdateRequesting', { context.commit('devicePreferencesUpdateRequesting', {
deviceId: options.deviceId, deviceId: options.deviceId,
devicePreferencesField: i18n.global.tc('Disable phone web interface') devicePreferencesField: i18n.global.t('Disable phone web interface')
}) })
setPreferenceDevice(options.deviceId, options.webGui, 'web_gui_dis').then((device) => { setPreferenceDevice(options.deviceId, options.webGui, 'web_gui_dis').then((device) => {
context.commit('devicePreferencesUpdateSucceeded', device) context.commit('devicePreferencesUpdateSucceeded', device)
@ -417,7 +417,7 @@ export default {
setUserConfig (context, options) { setUserConfig (context, options) {
context.commit('devicePreferencesUpdateRequesting', { context.commit('devicePreferencesUpdateRequesting', {
deviceId: options.deviceId, deviceId: options.deviceId,
devicePreferencesField: i18n.global.tc('User config priority over provisioning') devicePreferencesField: i18n.global.t('User config priority over provisioning')
}) })
setPreferenceDevice(options.deviceId, options.userConf, 'user_conf_priority').then((device) => { setPreferenceDevice(options.deviceId, options.userConf, 'user_conf_priority').then((device) => {
context.commit('devicePreferencesUpdateSucceeded', device) context.commit('devicePreferencesUpdateSucceeded', device)

@ -89,24 +89,24 @@ export default {
}, },
getGroupRemoveDialogMessage (state, getters) { getGroupRemoveDialogMessage (state, getters) {
if (getters.isGroupRemoving) { if (getters.isGroupRemoving) {
return i18n.global.tc('You are about to remove group {group}', { return i18n.global.t('You are about to remove group {group}', {
group: getters.getGroupRemovingName group: getters.getGroupRemovingName
}) })
} }
return '' return ''
}, },
getGroupCreationToastMessage (state, getters) { getGroupCreationToastMessage (state, getters) {
return i18n.global.tc('Added group {group}', { return i18n.global.t('Added group {group}', {
group: getters.getGroupCreatingName group: getters.getGroupCreatingName
}) })
}, },
getGroupUpdateToastMessage (state, getters) { getGroupUpdateToastMessage (state, getters) {
return i18n.global.tc('Changed {field} successfully', { return i18n.global.t('Changed {field} successfully', {
field: getters.getGroupUpdatingField field: getters.getGroupUpdatingField
}) })
}, },
getGroupRemovalToastMessage (state, getters) { getGroupRemovalToastMessage (state, getters) {
return i18n.global.tc('Removed group {group}', { return i18n.global.t('Removed group {group}', {
group: getters.getGroupRemovingName group: getters.getGroupRemovingName
}) })
}, },
@ -123,19 +123,19 @@ export default {
getHuntPolicyOptions () { getHuntPolicyOptions () {
return [ return [
{ {
label: i18n.global.tc('Serial Ringing'), label: i18n.global.t('Serial Ringing'),
value: 'serial' value: 'serial'
}, },
{ {
label: i18n.global.tc('Parallel Ringing'), label: i18n.global.t('Parallel Ringing'),
value: 'parallel' value: 'parallel'
}, },
{ {
label: i18n.global.tc('Random Ringing'), label: i18n.global.t('Random Ringing'),
value: 'random' value: 'random'
}, },
{ {
label: i18n.global.tc('Circular Ringing'), label: i18n.global.t('Circular Ringing'),
value: 'circular' value: 'circular'
} }
] ]
@ -148,11 +148,11 @@ export default {
getHuntCancelModeOptions () { getHuntCancelModeOptions () {
return [ return [
{ {
label: i18n.global.tc('Using Cancel'), label: i18n.global.t('Using Cancel'),
value: 'cancel' value: 'cancel'
}, },
{ {
label: i18n.global.tc('Using Bye'), label: i18n.global.t('Using Bye'),
value: 'bye' value: 'bye'
} }
] ]
@ -318,7 +318,7 @@ export default {
setGroupName (context, options) { setGroupName (context, options) {
context.commit('groupUpdateRequesting', { context.commit('groupUpdateRequesting', {
groupId: options.groupId, groupId: options.groupId,
groupField: i18n.global.tc('Group Name') groupField: i18n.global.t('Group Name')
}) })
setGroupName({ setGroupName({
groupId: options.groupId, groupId: options.groupId,
@ -332,7 +332,7 @@ export default {
setGroupExtension (context, options) { setGroupExtension (context, options) {
context.commit('groupUpdateRequesting', { context.commit('groupUpdateRequesting', {
groupId: options.groupId, groupId: options.groupId,
groupField: i18n.global.tc('Extension') groupField: i18n.global.t('Extension')
}) })
setGroupExtension({ setGroupExtension({
groupId: options.groupId, groupId: options.groupId,
@ -346,7 +346,7 @@ export default {
setGroupHuntPolicy (context, options) { setGroupHuntPolicy (context, options) {
context.commit('groupUpdateRequesting', { context.commit('groupUpdateRequesting', {
groupId: options.groupId, groupId: options.groupId,
groupField: i18n.global.tc('Hunt Policy') groupField: i18n.global.t('Hunt Policy')
}) })
setGroupHuntPolicy({ setGroupHuntPolicy({
groupId: options.groupId, groupId: options.groupId,
@ -360,7 +360,7 @@ export default {
setGroupHuntTimeout (context, options) { setGroupHuntTimeout (context, options) {
context.commit('groupUpdateRequesting', { context.commit('groupUpdateRequesting', {
groupId: options.groupId, groupId: options.groupId,
groupField: i18n.global.tc('Hunt Policy') groupField: i18n.global.t('Hunt Policy')
}) })
setGroupHuntTimeout({ setGroupHuntTimeout({
groupId: options.groupId, groupId: options.groupId,
@ -374,7 +374,7 @@ export default {
setGroupHuntCancelMode (context, options) { setGroupHuntCancelMode (context, options) {
context.commit('groupUpdateRequesting', { context.commit('groupUpdateRequesting', {
groupId: options.groupId, groupId: options.groupId,
groupField: i18n.global.tc('Hunt Cancel Mode') groupField: i18n.global.t('Hunt Cancel Mode')
}) })
setGroupHuntCancelMode({ setGroupHuntCancelMode({
groupId: options.groupId, groupId: options.groupId,
@ -388,7 +388,7 @@ export default {
setGroupNumbers (context, options) { setGroupNumbers (context, options) {
context.commit('groupUpdateRequesting', { context.commit('groupUpdateRequesting', {
groupId: options.groupId, groupId: options.groupId,
groupField: i18n.global.tc('Alias Numbers') groupField: i18n.global.t('Alias Numbers')
}) })
setGroupNumbers({ setGroupNumbers({
groupId: options.groupId, groupId: options.groupId,
@ -404,7 +404,7 @@ export default {
setGroupSeats (context, options) { setGroupSeats (context, options) {
context.commit('groupUpdateRequesting', { context.commit('groupUpdateRequesting', {
groupId: options.groupId, groupId: options.groupId,
groupField: i18n.global.tc('Seats') groupField: i18n.global.t('Seats')
}) })
setGroupSeats({ setGroupSeats({
groupId: options.groupId, groupId: options.groupId,
@ -418,7 +418,7 @@ export default {
setGroupSoundSet (context, options) { setGroupSoundSet (context, options) {
context.commit('groupUpdateRequesting', { context.commit('groupUpdateRequesting', {
groupId: options.groupId, groupId: options.groupId,
groupField: i18n.global.tc('Sound Set') groupField: i18n.global.t('Sound Set')
}) })
setGroupSoundSet({ setGroupSoundSet({
groupId: options.groupId, groupId: options.groupId,

@ -63,7 +63,7 @@ export default {
}, },
getMsConfigRemoveDialogMessage (state) { getMsConfigRemoveDialogMessage (state) {
if (state.msConfigRemoving !== null) { if (state.msConfigRemoving !== null) {
return i18n.global.tc('You are about to remove config for {msConfig}', { return i18n.global.t('You are about to remove config for {msConfig}', {
msConfig: state.subscriberMap[state.msConfigRemoving.id].display_name msConfig: state.subscriberMap[state.msConfigRemoving.id].display_name
}) })
} }
@ -85,18 +85,18 @@ export default {
return state.msConfigUpdatingField return state.msConfigUpdatingField
}, },
getMsConfigCreationToastMessage (state, getters) { getMsConfigCreationToastMessage (state, getters) {
return i18n.global.tc('Created manager secretary config for {msConfig} successfully', { return i18n.global.t('Created manager secretary config for {msConfig} successfully', {
msConfig: getters.getMsConfigCreatingName msConfig: getters.getMsConfigCreatingName
}) })
}, },
getMsConfigUpdateToastMessage (state, getters) { getMsConfigUpdateToastMessage (state, getters) {
return i18n.global.tc('Updated {field} for manager secretary config {msConfig} successfully', { return i18n.global.t('Updated {field} for manager secretary config {msConfig} successfully', {
msConfig: getters.getMsConfigUpdatingName, msConfig: getters.getMsConfigUpdatingName,
field: getters.getMsConfigUpdatingField field: getters.getMsConfigUpdatingField
}) })
}, },
getMsConfigRemovalToastMessage (state, getters) { getMsConfigRemovalToastMessage (state, getters) {
return i18n.global.tc('Removed manager secretary config for {msConfig} successfully', { return i18n.global.t('Removed manager secretary config for {msConfig} successfully', {
msConfig: getters.getMsConfigRemovingName msConfig: getters.getMsConfigRemovingName
}) })
} }
@ -237,7 +237,7 @@ export default {
setSecretaryNumbers (context, options) { setSecretaryNumbers (context, options) {
context.commit('msConfigUpdateRequesting', { context.commit('msConfigUpdateRequesting', {
msConfigId: options.msConfigId, msConfigId: options.msConfigId,
field: i18n.global.tc('Secretary numbers') field: i18n.global.t('Secretary numbers')
}) })
setSecretaryNumber(options).then((preferences) => { setSecretaryNumber(options).then((preferences) => {
context.commit('msConfigUpdateSucceeded', preferences) context.commit('msConfigUpdateSucceeded', preferences)

@ -181,24 +181,24 @@ export default {
}, },
getSeatRemoveDialogMessage (state, getters) { getSeatRemoveDialogMessage (state, getters) {
if (state.seatRemoving !== null) { if (state.seatRemoving !== null) {
return i18n.global.tc('You are about to remove seat {seat}', { return i18n.global.t('You are about to remove seat {seat}', {
seat: getters.getSeatRemovingName seat: getters.getSeatRemovingName
}) })
} }
return '' return ''
}, },
getSeatCreationToastMessage (state, getters) { getSeatCreationToastMessage (state, getters) {
return i18n.global.tc('Added seat {seat}', { return i18n.global.t('Added seat {seat}', {
seat: getters.getSeatCreatingName seat: getters.getSeatCreatingName
}) })
}, },
getSeatUpdateToastMessage (state, getters) { getSeatUpdateToastMessage (state, getters) {
return i18n.global.tc('Changed {field} successfully', { return i18n.global.t('Changed {field} successfully', {
field: getters.getSeatUpdatingField field: getters.getSeatUpdatingField
}) })
}, },
getSeatRemovalToastMessage (state, getters) { getSeatRemovalToastMessage (state, getters) {
return i18n.global.tc('Removed seat {seat}', { return i18n.global.t('Removed seat {seat}', {
seat: getters.getSeatRemovingName seat: getters.getSeatRemovingName
}) })
}, },
@ -387,7 +387,7 @@ export default {
setSeatDisplayName (context, options) { setSeatDisplayName (context, options) {
context.commit('seatUpdateRequesting', { context.commit('seatUpdateRequesting', {
seatId: options.seatId, seatId: options.seatId,
seatField: i18n.global.tc('Seat displayName') seatField: i18n.global.t('Seat displayName')
}) })
setSeatDisplayName({ setSeatDisplayName({
seatId: options.seatId, seatId: options.seatId,
@ -401,7 +401,7 @@ export default {
setSeatWebUsername (context, options) { setSeatWebUsername (context, options) {
context.commit('seatUpdateRequesting', { context.commit('seatUpdateRequesting', {
seatId: options.seatId, seatId: options.seatId,
seatField: i18n.global.tc('Seat Web Username') seatField: i18n.global.t('Seat Web Username')
}) })
setSeatWebUsername({ setSeatWebUsername({
seatId: options.seatId, seatId: options.seatId,
@ -415,7 +415,7 @@ export default {
setSeatExtension (context, options) { setSeatExtension (context, options) {
context.commit('seatUpdateRequesting', { context.commit('seatUpdateRequesting', {
seatId: options.seatId, seatId: options.seatId,
seatField: i18n.global.tc('Extension') seatField: i18n.global.t('Extension')
}) })
setSeatExtension({ setSeatExtension({
seatId: options.seatId, seatId: options.seatId,
@ -429,7 +429,7 @@ export default {
setSeatWebPassword (context, options) { setSeatWebPassword (context, options) {
context.commit('seatUpdateRequesting', { context.commit('seatUpdateRequesting', {
seatId: options.seatId, seatId: options.seatId,
seatField: i18n.global.tc('Password') seatField: i18n.global.t('Password')
}) })
setSeatWebPassword({ setSeatWebPassword({
seatId: options.seatId, seatId: options.seatId,
@ -443,7 +443,7 @@ export default {
setSeatSIPPassword (context, options) { setSeatSIPPassword (context, options) {
context.commit('seatUpdateRequesting', { context.commit('seatUpdateRequesting', {
seatId: options.seatId, seatId: options.seatId,
seatField: i18n.global.tc('SIP Password') seatField: i18n.global.t('SIP Password')
}) })
setSeatSIPPassword({ setSeatSIPPassword({
seatId: options.seatId, seatId: options.seatId,
@ -457,7 +457,7 @@ export default {
setSeatGroups (context, options) { setSeatGroups (context, options) {
context.commit('seatUpdateRequesting', { context.commit('seatUpdateRequesting', {
seatId: options.seatId, seatId: options.seatId,
seatField: i18n.global.tc('Groups') seatField: i18n.global.t('Groups')
}) })
setSeatGroups({ setSeatGroups({
seatId: options.seatId, seatId: options.seatId,
@ -471,7 +471,7 @@ export default {
setSeatNumbers (context, options) { setSeatNumbers (context, options) {
context.commit('seatUpdateRequesting', { context.commit('seatUpdateRequesting', {
seatId: options.seatId, seatId: options.seatId,
seatField: i18n.global.tc('Alias Numbers') seatField: i18n.global.t('Alias Numbers')
}) })
setSeatNumbers({ setSeatNumbers({
seatId: options.seatId, seatId: options.seatId,
@ -489,7 +489,7 @@ export default {
setSeatSoundSet (context, options) { setSeatSoundSet (context, options) {
context.commit('seatUpdateRequesting', { context.commit('seatUpdateRequesting', {
seatId: options.seatId, seatId: options.seatId,
seatField: i18n.global.tc('Sound Set') seatField: i18n.global.t('Sound Set')
}) })
setSeatSoundSet({ setSeatSoundSet({
seatId: options.seatId, seatId: options.seatId,
@ -503,7 +503,7 @@ export default {
setNcosSet (context, options) { setNcosSet (context, options) {
context.commit('seatUpdateRequesting', { context.commit('seatUpdateRequesting', {
seatId: options.seatId, seatId: options.seatId,
seatField: i18n.global.tc('Ncos') seatField: i18n.global.t('Ncos')
}) })
setNcosSet({ setNcosSet({
seatId: options.seatId, seatId: options.seatId,
@ -517,7 +517,7 @@ export default {
NcosSet (context, options) { NcosSet (context, options) {
context.commit('seatUpdateRequesting', { context.commit('seatUpdateRequesting', {
seatId: options.seatId, seatId: options.seatId,
seatField: i18n.global.tc('Ncos Set') seatField: i18n.global.t('Ncos Set')
}) })
NcosSet({ NcosSet({
seatId: options.seatId, seatId: options.seatId,
@ -531,7 +531,7 @@ export default {
setNcosLevelSet (context, options) { setNcosLevelSet (context, options) {
context.commit('seatUpdateRequesting', { context.commit('seatUpdateRequesting', {
seatId: getSubscriberId(), seatId: getSubscriberId(),
seatField: i18n.global.tc('Ncos') seatField: i18n.global.t('Ncos')
}) })
setNcosLevelSets({ setNcosLevelSets({
seatId: getSubscriberId(), seatId: getSubscriberId(),
@ -545,7 +545,7 @@ export default {
setNcosSets (context, options) { setNcosSets (context, options) {
context.commit('seatUpdateRequesting', { context.commit('seatUpdateRequesting', {
seatId: getSubscriberId(), seatId: getSubscriberId(),
seatField: i18n.global.tc('Ncos Set') seatField: i18n.global.t('Ncos Set')
}) })
NcosSets({ NcosSets({
seatId: getSubscriberId(), seatId: getSubscriberId(),
@ -559,7 +559,7 @@ export default {
async setIntraPbx (context, options) { async setIntraPbx (context, options) {
context.commit('seatUpdateRequesting', { context.commit('seatUpdateRequesting', {
seatId: options.seatId, seatId: options.seatId,
seatField: options.message || i18n.global.tc('the visibility of the number within own PBX') seatField: options.message || i18n.global.t('the visibility of the number within own PBX')
}) })
try { try {
const result = await setSeatIntraPbx(options.seatId, options.intraPbx) const result = await setSeatIntraPbx(options.seatId, options.intraPbx)
@ -571,7 +571,7 @@ export default {
async setMusicOnHold (context, options) { async setMusicOnHold (context, options) {
context.commit('seatUpdateRequesting', { context.commit('seatUpdateRequesting', {
seatId: options.seatId, seatId: options.seatId,
seatField: options.message || i18n.global.tc('music on hold of the seat') seatField: options.message || i18n.global.t('music on hold of the seat')
}) })
try { try {
const result = await setSeatMusicOnHold(options.seatId, options.musicOnHold) const result = await setSeatMusicOnHold(options.seatId, options.musicOnHold)
@ -583,7 +583,7 @@ export default {
async setCli (context, options) { async setCli (context, options) {
context.commit('seatUpdateRequesting', { context.commit('seatUpdateRequesting', {
seatId: options.seatId, seatId: options.seatId,
seatField: options.message || i18n.global.tc('cli of the seat') seatField: options.message || i18n.global.t('cli of the seat')
}) })
try { try {
const result = await setSeatCli(options.seatId, options.cli) const result = await setSeatCli(options.seatId, options.cli)
@ -595,7 +595,7 @@ export default {
async setAnnouncementCfu (context, options) { async setAnnouncementCfu (context, options) {
context.commit('seatUpdateRequesting', { context.commit('seatUpdateRequesting', {
seatId: options.seatId, seatId: options.seatId,
seatField: options.message || i18n.global.tc('the playback announcement as early media before Call Forward Unconditional or Unavailable') seatField: options.message || i18n.global.t('the playback announcement as early media before Call Forward Unconditional or Unavailable')
}) })
try { try {
const result = await setSeatAnnouncementCfu(options.seatId, options.announcementCfu) const result = await setSeatAnnouncementCfu(options.seatId, options.announcementCfu)
@ -607,7 +607,7 @@ export default {
async setAnnouncementCallSetup (context, options) { async setAnnouncementCallSetup (context, options) {
context.commit('seatUpdateRequesting', { context.commit('seatUpdateRequesting', {
seatId: options.seatId, seatId: options.seatId,
seatField: options.message || i18n.global.tc('the playback announcement as early media before send the call to callee') seatField: options.message || i18n.global.t('the playback announcement as early media before send the call to callee')
}) })
try { try {
const result = await setSeatAnnouncementCallSetup(options.seatId, options.announcementCallSetup) const result = await setSeatAnnouncementCallSetup(options.seatId, options.announcementCallSetup)
@ -619,7 +619,7 @@ export default {
async setAnnouncementToCallee (context, options) { async setAnnouncementToCallee (context, options) {
context.commit('seatUpdateRequesting', { context.commit('seatUpdateRequesting', {
seatId: options.seatId, seatId: options.seatId,
seatField: options.message || i18n.global.tc('the playback announcement to callee after he answered the call') seatField: options.message || i18n.global.t('the playback announcement to callee after he answered the call')
}) })
try { try {
const result = await setSeatAnnouncementToCallee(options.seatId, options.announcementToCallee) const result = await setSeatAnnouncementToCallee(options.seatId, options.announcementToCallee)
@ -631,7 +631,7 @@ export default {
async setIgnoreCfWhenHunting (context, options) { async setIgnoreCfWhenHunting (context, options) {
context.commit('seatUpdateRequesting', { context.commit('seatUpdateRequesting', {
seatId: options.seatId, seatId: options.seatId,
seatField: options.message || i18n.global.tc('the behavior of the members call forwards from a Cloud PBX subscriber when it is called within a huntgroup') seatField: options.message || i18n.global.t('the behavior of the members call forwards from a Cloud PBX subscriber when it is called within a huntgroup')
}) })
try { try {
const result = await setSeatIgnoreCfWhenHunting(options.seatId, options.ignoreCfWhenHunting) const result = await setSeatIgnoreCfWhenHunting(options.seatId, options.ignoreCfWhenHunting)
@ -643,7 +643,7 @@ export default {
async setCstaClient (context, options) { async setCstaClient (context, options) {
context.commit('seatUpdateRequesting', { context.commit('seatUpdateRequesting', {
seatId: options.seatId, seatId: options.seatId,
seatField: options.message || i18n.global.tc('the right of this subscriber to be controlled by a CTI subscriber within the same customer using uaCSTA via SIP') seatField: options.message || i18n.global.t('the right of this subscriber to be controlled by a CTI subscriber within the same customer using uaCSTA via SIP')
}) })
try { try {
const result = await setSeatCstaClient(options.seatId, options.cstaClient) const result = await setSeatCstaClient(options.seatId, options.cstaClient)
@ -655,7 +655,7 @@ export default {
async setCstaController (context, options) { async setCstaController (context, options) {
context.commit('seatUpdateRequesting', { context.commit('seatUpdateRequesting', {
seatId: options.seatId, seatId: options.seatId,
seatField: options.message || i18n.global.tc('the right this subscriber to initiate CTI sessions to other subscribers within the same customer using uaCSTA via SIP') seatField: options.message || i18n.global.t('the right this subscriber to initiate CTI sessions to other subscribers within the same customer using uaCSTA via SIP')
}) })
try { try {
const result = await setSeatCstaController(options.seatId, options.cstaController) const result = await setSeatCstaController(options.seatId, options.cstaController)

@ -94,7 +94,7 @@ export default {
getSoundSetRemoveDialogMessage (state) { getSoundSetRemoveDialogMessage (state) {
if (state.soundSetRemoving !== null) { if (state.soundSetRemoving !== null) {
const id = _.get(state, 'soundSetRemoving.id', null) const id = _.get(state, 'soundSetRemoving.id', null)
return i18n.global.tc('You are about to remove sound set {soundSetName}', { return i18n.global.t('You are about to remove sound set {soundSetName}', {
soundSetName: _.get(state, `soundSetMap.${id}.name`, null) soundSetName: _.get(state, `soundSetMap.${id}.name`, null)
}) })
} }
@ -113,18 +113,18 @@ export default {
return state.soundSetUpdatingField return state.soundSetUpdatingField
}, },
getSoundSetCreationToastMessage (state, getters) { getSoundSetCreationToastMessage (state, getters) {
return i18n.global.tc('Created sound set {soundSet} successfully', { return i18n.global.t('Created sound set {soundSet} successfully', {
soundSet: getters.getSoundSetCreatingName soundSet: getters.getSoundSetCreatingName
}) })
}, },
getSoundSetUpdateToastMessage (state, getters) { getSoundSetUpdateToastMessage (state, getters) {
return i18n.global.tc('Updated {field} for sound set {soundSet} successfully', { return i18n.global.t('Updated {field} for sound set {soundSet} successfully', {
soundSet: getters.getSoundSetUpdatingName, soundSet: getters.getSoundSetUpdatingName,
field: getters.getSoundSetUpdatingField field: getters.getSoundSetUpdatingField
}) })
}, },
getSoundSetRemovalToastMessage (state, getters) { getSoundSetRemovalToastMessage (state, getters) {
return i18n.global.tc('Removed sound set {soundSet} successfully', { return i18n.global.t('Removed sound set {soundSet} successfully', {
soundSet: getters.getSoundSetRemovingName soundSet: getters.getSoundSetRemovingName
}) })
}, },
@ -408,7 +408,7 @@ export default {
setAsDefaultSoundSet (context, options) { setAsDefaultSoundSet (context, options) {
context.commit('soundSetUpdateRequesting', { context.commit('soundSetUpdateRequesting', {
soundSetId: options.soundSetId, soundSetId: options.soundSetId,
field: i18n.global.tc('default option') field: i18n.global.t('default option')
}) })
let func = setAsDefault let func = setAsDefault
if (options.contractDefault !== true) { if (options.contractDefault !== true) {
@ -423,7 +423,7 @@ export default {
setSoundSetName (context, options) { setSoundSetName (context, options) {
context.commit('soundSetUpdateRequesting', { context.commit('soundSetUpdateRequesting', {
soundSetId: options.soundSetId, soundSetId: options.soundSetId,
field: i18n.global.tc('name') field: i18n.global.t('name')
}) })
setSoundSetName(options.soundSetId, options.name).then((soundSet) => { setSoundSetName(options.soundSetId, options.name).then((soundSet) => {
context.commit('soundSetUpdateSucceeded', soundSet) context.commit('soundSetUpdateSucceeded', soundSet)
@ -434,7 +434,7 @@ export default {
setSoundSetDescription (context, options) { setSoundSetDescription (context, options) {
context.commit('soundSetUpdateRequesting', { context.commit('soundSetUpdateRequesting', {
soundSetId: options.soundSetId, soundSetId: options.soundSetId,
field: i18n.global.tc('description') field: i18n.global.t('description')
}) })
setSoundSetDescription(options.soundSetId, options.description).then((soundSet) => { setSoundSetDescription(options.soundSetId, options.description).then((soundSet) => {
context.commit('soundSetUpdateSucceeded', soundSet) context.commit('soundSetUpdateSucceeded', soundSet)
@ -445,7 +445,7 @@ export default {
setSoundSetParent (context, options) { setSoundSetParent (context, options) {
context.commit('soundSetUpdateRequesting', { context.commit('soundSetUpdateRequesting', {
soundSetId: options.soundSetId, soundSetId: options.soundSetId,
field: i18n.global.tc('parent') field: i18n.global.t('parent')
}) })
setSoundSetParent(options.soundSetId, options.parent_id).then((soundSet) => { setSoundSetParent(options.soundSetId, options.parent_id).then((soundSet) => {
context.commit('soundSetUpdateSucceeded', soundSet) context.commit('soundSetUpdateSucceeded', soundSet)

@ -98,7 +98,7 @@ export default {
}, },
getSoundSetOptions (state) { getSoundSetOptions (state) {
const options = [] const options = []
const defaultLabel = i18n.global.tc('Default') const defaultLabel = i18n.global.t('Default')
state.soundSetList.forEach((soundSet) => { state.soundSetList.forEach((soundSet) => {
options.push({ options.push({
label: soundSet.name, label: soundSet.name,
@ -124,7 +124,7 @@ export default {
getSubscriberOptions (state) { getSubscriberOptions (state) {
const options = [] const options = []
options.push({ options.push({
label: i18n.global.tc('Unassigned'), label: i18n.global.t('Unassigned'),
icon: 'clear', icon: 'clear',
value: null, value: null,
type: null type: null
@ -166,15 +166,15 @@ export default {
const min = getters.getMinAllowedExtension const min = getters.getMinAllowedExtension
const max = getters.getMaxAllowedExtension const max = getters.getMaxAllowedExtension
if (min >= 0 && max === null) { if (min >= 0 && max === null) {
return i18n.global.tc('Minimum allowed extension is {min}', { return i18n.global.t('Minimum allowed extension is {min}', {
min min
}) })
} else if (min < 0 && max) { } else if (min < 0 && max) {
return i18n.global.tc('Maximum allowed extension is {max}', { return i18n.global.t('Maximum allowed extension is {max}', {
max max
}) })
} else if (min >= 0 && max) { } else if (min >= 0 && max) {
return i18n.global.tc('Allowed extensions are between {min} and {max}', { return i18n.global.t('Allowed extensions are between {min} and {max}', {
min, min,
max max
}) })

@ -39,13 +39,13 @@ export default {
return state.speedDialLoadingState return state.speedDialLoadingState
}, },
speedDialLoadingError (state) { speedDialLoadingError (state) {
return state.speedDialLoadingError || i18n.global.tc('An error occured while trying to load the speed dials. Please try again') return state.speedDialLoadingError || i18n.global.t('An error occured while trying to load the speed dials. Please try again')
}, },
unassignSlotState (state) { unassignSlotState (state) {
return state.unassignSlotState return state.unassignSlotState
}, },
unassignSlotError (state) { unassignSlotError (state) {
return state.unassignSlotError || i18n.global.tc('An error occured while trying to unassign the speed dial slot. Please try again') return state.unassignSlotError || i18n.global.t('An error occured while trying to unassign the speed dial slot. Please try again')
}, },
lastUnassignedSlot (state) { lastUnassignedSlot (state) {
return state.lastUnassignedSlot return state.lastUnassignedSlot
@ -59,7 +59,7 @@ export default {
return state.assignSlotState return state.assignSlotState
}, },
assignSlotError (state) { assignSlotError (state) {
return state.assignSlotError || i18n.global.tc('An error occured while trying to assign the speed dial slot. Please try again') return state.assignSlotError || i18n.global.t('An error occured while trying to assign the speed dial slot. Please try again')
}, },
lastAssignedSlot (state) { lastAssignedSlot (state) {
return state.lastAssignedSlot return state.lastAssignedSlot

@ -113,8 +113,8 @@ export default {
}, },
attachLabel (state, getters) { attachLabel (state, getters) {
return state.attachValue return state.attachValue
? i18n.global.tc('Attach voicemail to email notification') ? i18n.global.t('Attach voicemail to email notification')
: i18n.global.tc('Attach voicemail to email notification') : i18n.global.t('Attach voicemail to email notification')
}, },
deleteLoading (state, getters) { deleteLoading (state, getters) {
@ -122,8 +122,8 @@ export default {
}, },
deleteLabel (state, getters) { deleteLabel (state, getters) {
return state.deleteValue return state.deleteValue
? i18n.global.tc('Delete voicemail after email notification is delivered') ? i18n.global.t('Delete voicemail after email notification is delivered')
: i18n.global.tc('Delete voicemail after email notification is delivered') : i18n.global.t('Delete voicemail after email notification is delivered')
}, },
busyGreetingUploading (state) { busyGreetingUploading (state) {
@ -134,8 +134,8 @@ export default {
}, },
busyGreetingLabel (state) { busyGreetingLabel (state) {
return state.busyGreetingId return state.busyGreetingId
? i18n.global.tc('Custom sound') ? i18n.global.t('Custom sound')
: i18n.global.tc('Default sound') : i18n.global.t('Default sound')
}, },
busyGreetingDeleting (state) { busyGreetingDeleting (state) {
return state.busyGreetingDeletionState === RequestState.requesting return state.busyGreetingDeletionState === RequestState.requesting
@ -149,8 +149,8 @@ export default {
}, },
unavailableGreetingLabel (state) { unavailableGreetingLabel (state) {
return state.unavailableGreetingId return state.unavailableGreetingId
? i18n.global.tc('Custom sound') ? i18n.global.t('Custom sound')
: i18n.global.tc('Default sound') : i18n.global.t('Default sound')
}, },
unavailableGreetingDeleting (state) { unavailableGreetingDeleting (state) {
return state.unavailableGreetingDeletionState === RequestState.requesting return state.unavailableGreetingDeletionState === RequestState.requesting
@ -163,8 +163,8 @@ export default {
}, },
tempGreetingLabel (state) { tempGreetingLabel (state) {
return state.tempGreetingId return state.tempGreetingId
? i18n.global.tc('Custom sound') ? i18n.global.t('Custom sound')
: i18n.global.tc('Default sound') : i18n.global.t('Default sound')
}, },
tempGreetingDeleting (state) { tempGreetingDeleting (state) {
return state.tempGreetingDeletionState === RequestState.requesting return state.tempGreetingDeletionState === RequestState.requesting
@ -177,8 +177,8 @@ export default {
}, },
greetGreetingLabel (state) { greetGreetingLabel (state) {
return state.greetGreetingId return state.greetGreetingId
? i18n.global.tc('Custom sound') ? i18n.global.t('Custom sound')
: i18n.global.tc('Default sound') : i18n.global.t('Default sound')
}, },
greetGreetingDeleting (state) { greetGreetingDeleting (state) {
return state.greetGreetingDeletionState === RequestState.requesting return state.greetGreetingDeletionState === RequestState.requesting

@ -1,36 +1,36 @@
import { i18n } from 'boot/i18n' import { i18n } from 'boot/i18n'
export const errorMessages = { export const errorMessages = {
integer () { integer () {
return i18n.global.tc('Only none decimal numbers are allowed') return i18n.global.t('Only none decimal numbers are allowed')
}, },
numeric () { numeric () {
return i18n.global.tc('Input must be a valid number') return i18n.global.t('Input must be a valid number')
}, },
required () { required () {
return i18n.global.tc('Input is required') return i18n.global.t('Input is required')
}, },
passwordDigits () { passwordDigits () {
return i18n.global.tc('Password is not strong enough, add more digits') return i18n.global.t('Password is not strong enough, add more digits')
}, },
passwordLowercase () { passwordLowercase () {
return i18n.global.tc('Password is not strong enough, add more lowercase letters') return i18n.global.t('Password is not strong enough, add more lowercase letters')
}, },
passwordMaxLength (param) { passwordMaxLength (param) {
return i18n.global.tc('Password must be at least {max} characters long', param) return i18n.global.t('Password must be at least {max} characters long', param)
}, },
passwordMinLength (param) { passwordMinLength (param) {
return i18n.global.tc('Password must be at least {min} characters long', param) return i18n.global.t('Password must be at least {min} characters long', param)
}, },
passwordUppercase () { passwordUppercase () {
return i18n.global.tc('Password is not strong enough, add more uppercase letters') return i18n.global.t('Password is not strong enough, add more uppercase letters')
}, },
passwordChars () { passwordChars () {
return i18n.global.tc('Password is not strong enough, add more special characters') return i18n.global.t('Password is not strong enough, add more special characters')
}, },
passwordStrength () { passwordStrength () {
return i18n.global.tc('Password is considered weak') return i18n.global.t('Password is considered weak')
}, },
sameAsPassword () { sameAsPassword () {
return i18n.global.tc('Passwords must be equal') return i18n.global.t('Passwords must be equal')
} }
} }

@ -1405,26 +1405,26 @@
dependencies: dependencies:
mute-stream "^1.0.0" mute-stream "^1.0.0"
"@intlify/core-base@9.14.2": "@intlify/core-base@11.0.1":
version "9.14.2" version "11.0.1"
resolved "https://npm-registry.sipwise.com/@intlify/core-base/-/core-base-9.14.2.tgz#2c074506ea72425e937f911c95c0d845b43f7fdf" resolved "https://npm-registry.sipwise.com/@intlify/core-base/-/core-base-11.0.1.tgz#f84564a5bd313879b32cea70e6e3d2fe9e1f128b"
integrity sha512-DZyQ4Hk22sC81MP4qiCDuU+LdaYW91A6lCjq8AWPvY3+mGMzhGDfOCzvyR6YBQxtlPjFqMoFk9ylnNYRAQwXtQ== integrity sha512-NAmhw1l/llM0HZRpagR/ChJTNymW4ll6/4EDSJML5c8L5Hl/+k6UyF8EIgE6DeHpfheQujkSRngauViHqq6jJQ==
dependencies: dependencies:
"@intlify/message-compiler" "9.14.2" "@intlify/message-compiler" "11.0.1"
"@intlify/shared" "9.14.2" "@intlify/shared" "11.0.1"
"@intlify/message-compiler@9.14.2": "@intlify/message-compiler@11.0.1":
version "9.14.2" version "11.0.1"
resolved "https://npm-registry.sipwise.com/@intlify/message-compiler/-/message-compiler-9.14.2.tgz#7217842ea1875d80bbf0f708e9b3ef5ad7c57a03" resolved "https://npm-registry.sipwise.com/@intlify/message-compiler/-/message-compiler-11.0.1.tgz#7c159642e3a3c160dd25a15c17127c69d56b0561"
integrity sha512-YsKKuV4Qv4wrLNsvgWbTf0E40uRv+Qiw1BeLQ0LAxifQuhiMe+hfTIzOMdWj/ZpnTDj4RSZtkXjJM7JDiiB5LQ== integrity sha512-5RFH8x+Mn3mbjcHXnb6KCXGiczBdiQkWkv99iiA0JpKrNuTAQeW59Pjq/uObMB0eR0shnKYGTkIJxum+DbL3sw==
dependencies: dependencies:
"@intlify/shared" "9.14.2" "@intlify/shared" "11.0.1"
source-map-js "^1.0.2" source-map-js "^1.0.2"
"@intlify/shared@9.14.2": "@intlify/shared@11.0.1":
version "9.14.2" version "11.0.1"
resolved "https://npm-registry.sipwise.com/@intlify/shared/-/shared-9.14.2.tgz#f7dceea32db44c9253e3f965745a42a5cb3a1883" resolved "https://npm-registry.sipwise.com/@intlify/shared/-/shared-11.0.1.tgz#25ff7f038bbae903e2bc75bf862b2380fde07cc8"
integrity sha512-uRAHAxYPeF+G5DBIboKpPgC/Waecd4Jz8ihtkpJQD5ycb5PwXp0k/+hBGl5dAjwF7w+l74kz/PKA8r8OK//RUw== integrity sha512-lH164+aDDptHZ3dBDbIhRa1dOPQUp+83iugpc+1upTOWCnwyC1PVis6rSWNMMJ8VQxvtHQB9JMib48K55y0PvQ==
"@isaacs/cliui@^8.0.2": "@isaacs/cliui@^8.0.2":
version "8.0.2" version "8.0.2"
@ -11735,13 +11735,13 @@ vue-eslint-parser@^9.4.3:
lodash "^4.17.21" lodash "^4.17.21"
semver "^7.3.6" semver "^7.3.6"
vue-i18n@9.14.2: vue-i18n@11.0.1:
version "9.14.2" version "11.0.1"
resolved "https://npm-registry.sipwise.com/vue-i18n/-/vue-i18n-9.14.2.tgz#e7f657664fcb3ccf99ecea684fc56e0f8e5335ce" resolved "https://npm-registry.sipwise.com/vue-i18n/-/vue-i18n-11.0.1.tgz#aa4c20d6f7c127bc46028ae3325659be47dd338e"
integrity sha512-JK9Pm80OqssGJU2Y6F7DcM8RFHqVG4WkuCqOZTVsXkEzZME7ABejAUqUdA931zEBedc4thBgSUWxeQh4uocJAQ== integrity sha512-pWAT8CusK8q9/EpN7V3oxwHwxWm6+Kp2PeTZmRGvdZTkUzMQDpbbmHp0TwQ8xw04XKm23cr6B4GL72y3W8Yekg==
dependencies: dependencies:
"@intlify/core-base" "9.14.2" "@intlify/core-base" "11.0.1"
"@intlify/shared" "9.14.2" "@intlify/shared" "11.0.1"
"@vue/devtools-api" "^6.5.0" "@vue/devtools-api" "^6.5.0"
vue-jscodeshift-adapter@^2.2.1: vue-jscodeshift-adapter@^2.2.1:

Loading…
Cancel
Save