From 02979bd4290d2cf4b237ca2e7c1442ce927c3203 Mon Sep 17 00:00:00 2001 From: lizacoma Date: Tue, 5 Mar 2024 17:27:33 +0200 Subject: [PATCH] refactoring [WTEL-4273] --- src/app/locale/en/en.js | 1 + src/app/locale/ru/ru.js | 5 +++++ src/app/locale/ua/ua.js | 5 +++++ .../global-variables/components/global-variables-popup.vue | 5 ++--- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/app/locale/en/en.js b/src/app/locale/en/en.js index 19ec95422..007267e04 100644 --- a/src/app/locale/en/en.js +++ b/src/app/locale/en/en.js @@ -3,6 +3,7 @@ import { EngineCommunicationChannels, LoggerAction } from 'webitel-sdk'; export default { + new: 'New', auth: { register: 'Register', login: 'Login', diff --git a/src/app/locale/ru/ru.js b/src/app/locale/ru/ru.js index 2a06fadb4..f3a0666bd 100644 --- a/src/app/locale/ru/ru.js +++ b/src/app/locale/ru/ru.js @@ -3,6 +3,11 @@ import { EngineCommunicationChannels, LoggerAction } from 'webitel-sdk'; export default { + new: ({ named }) => { + return named('gender') === 'female' + ? 'Новая' + : 'Новый'; + }, auth: { register: 'Создать', login: 'Вход', diff --git a/src/app/locale/ua/ua.js b/src/app/locale/ua/ua.js index a11b942e8..d592496bb 100644 --- a/src/app/locale/ua/ua.js +++ b/src/app/locale/ua/ua.js @@ -3,6 +3,11 @@ import { EngineCommunicationChannels, LoggerAction } from 'webitel-sdk'; export default { + new: ({ named }) => { + return named('gender') === 'female' + ? 'Нова' + : 'Новий'; + }, auth: { register: 'Створити', login: 'Вхід', diff --git a/src/modules/system/modules/global-variables/components/global-variables-popup.vue b/src/modules/system/modules/global-variables/components/global-variables-popup.vue index 1e6206cea..e7439bfff 100644 --- a/src/modules/system/modules/global-variables/components/global-variables-popup.vue +++ b/src/modules/system/modules/global-variables/components/global-variables-popup.vue @@ -5,9 +5,8 @@ @close="close" >