diff --git a/package-lock.json b/package-lock.json index 96e35df..b9d5ea4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "dependencies": { "@vuelidate/core": "^2.0.0", "@vuelidate/validators": "^2.0.2", - "@webitel/ui-sdk": "^23.12.38", + "@webitel/ui-sdk": "^23.12.39", "axios": "^0.27.2", "core-js": "^3.8.3", "deep-equal": "^2.2.1", @@ -5350,9 +5350,9 @@ } }, "node_modules/@webitel/ui-sdk": { - "version": "23.12.38", - "resolved": "https://registry.npmjs.org/@webitel/ui-sdk/-/ui-sdk-23.12.38.tgz", - "integrity": "sha512-n5bqC2jJNejf3gdBikjYpBDQf1vgdmgN9zRbEKcTC436qTa6YDDvkK/e1EHjktUz8z6Sjkx2qpT7DAVJovmfVg==", + "version": "23.12.39", + "resolved": "https://registry.npmjs.org/@webitel/ui-sdk/-/ui-sdk-23.12.39.tgz", + "integrity": "sha512-D5HZEswglwYoURGT0CFMIhK5wfLa/sQGcB+VXpADJgNF0nycRy9uNHSNhh5P73Ph9MdiCx3UDSLJQ7TbKgbbWw==", "dependencies": { "@floating-ui/vue": "^1.0.1", "@vue/compat": "^3.2.47", @@ -28167,9 +28167,9 @@ } }, "@webitel/ui-sdk": { - "version": "23.12.38", - "resolved": "https://registry.npmjs.org/@webitel/ui-sdk/-/ui-sdk-23.12.38.tgz", - "integrity": "sha512-n5bqC2jJNejf3gdBikjYpBDQf1vgdmgN9zRbEKcTC436qTa6YDDvkK/e1EHjktUz8z6Sjkx2qpT7DAVJovmfVg==", + "version": "23.12.39", + "resolved": "https://registry.npmjs.org/@webitel/ui-sdk/-/ui-sdk-23.12.39.tgz", + "integrity": "sha512-D5HZEswglwYoURGT0CFMIhK5wfLa/sQGcB+VXpADJgNF0nycRy9uNHSNhh5P73Ph9MdiCx3UDSLJQ7TbKgbbWw==", "requires": { "@floating-ui/vue": "^1.0.1", "@vue/compat": "^3.2.47", diff --git a/package.json b/package.json index 7314ac6..a26758a 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "dependencies": { "@vuelidate/core": "^2.0.0", "@vuelidate/validators": "^2.0.2", - "@webitel/ui-sdk": "^23.12.38", + "@webitel/ui-sdk": "^23.12.39", "axios": "^0.27.2", "core-js": "^3.8.3", "deep-equal": "^2.2.1", diff --git a/src/app/locale/i18n.js b/src/app/locale/i18n.js index ee5e30f..48f840d 100644 --- a/src/app/locale/i18n.js +++ b/src/app/locale/i18n.js @@ -2,11 +2,13 @@ import { createI18n } from 'vue-i18n'; import en from './en/en'; import ru from './ru/ru'; import ua from './ua/ua'; +import kz from './kz/kz'; const messages = { en, ru, ua, + kz, }; export default createI18n({ diff --git a/src/app/locale/kz/kz.js b/src/app/locale/kz/kz.js new file mode 100644 index 0000000..8640f49 --- /dev/null +++ b/src/app/locale/kz/kz.js @@ -0,0 +1,29 @@ +import AccessMode + from '../../../modules/contacts/modules/permissions/enums/AccessMode.enum'; + +export default { + crm: 'CRM', + contacts: { + contact: 'Контакт | Контактілер', + manager: 'Иесі | Иелері', + timeline: { + timeline: 'Хронология', + }, + communications: { + communications: 'Байланыс құралдары', + channel: 'Арна', + destination: 'Мақсат', + setAsPrimary: 'Негізгі ретінде орнату', + }, + }, + permissions: { + read: 'Оқу', + edit: 'Өңдеу', + delete: 'Жою', + accessMode: { + [AccessMode.FORBIDDEN]: 'Тыйым салынған', + [AccessMode.ALLOW]: 'Рұқсат', + [AccessMode.MANAGE]: 'Бақылау', + }, + }, +}; diff --git a/src/app/plugins/webitel-ui.js b/src/app/plugins/webitel-ui.js index 6615fb5..9f24a26 100644 --- a/src/app/plugins/webitel-ui.js +++ b/src/app/plugins/webitel-ui.js @@ -2,6 +2,7 @@ import WebitelUI from '@webitel/ui-sdk/dist/ui-sdk.common'; import WebitelUIEn from '@webitel/ui-sdk/src/locale/en/en'; import WebitelUIRu from '@webitel/ui-sdk/src/locale/ru/ru'; import WebitelUIUa from '@webitel/ui-sdk/src/locale/ua/ua'; +import WebitelUIKz from '@webitel/ui-sdk/src/locale/kz/kz'; import eventBus from '@webitel/ui-sdk/src/scripts/eventBus'; import i18n from '../locale/i18n'; import '@webitel/ui-sdk/dist/ui-sdk.css'; @@ -14,5 +15,6 @@ const globals = { i18n.global.mergeLocaleMessage('en', WebitelUIEn); i18n.global.mergeLocaleMessage('ru', WebitelUIRu); i18n.global.mergeLocaleMessage('ua', WebitelUIUa); +i18n.global.mergeLocaleMessage('kz', WebitelUIKz); export default [WebitelUI, { eventBus, globals }];