Skip to content

Commit

Permalink
refactoring [WTEL-4273]
Browse files Browse the repository at this point in the history
  • Loading branch information
lizacoma committed Mar 5, 2024
1 parent 9479dbe commit 02979bd
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/app/locale/en/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import { EngineCommunicationChannels, LoggerAction } from 'webitel-sdk';

export default {
new: 'New',
auth: {
register: 'Register',
login: 'Login',
Expand Down
5 changes: 5 additions & 0 deletions src/app/locale/ru/ru.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
import { EngineCommunicationChannels, LoggerAction } from 'webitel-sdk';

export default {
new: ({ named }) => {
return named('gender') === 'female'
? 'Новая'
: 'Новый';
},
auth: {
register: 'Создать',
login: 'Вход',
Expand Down
5 changes: 5 additions & 0 deletions src/app/locale/ua/ua.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
import { EngineCommunicationChannels, LoggerAction } from 'webitel-sdk';

export default {
new: ({ named }) => {
return named('gender') === 'female'
? 'Нова'
: 'Новий';
},
auth: {
register: 'Створити',
login: 'Вхід',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
@close="close"
>
<template #title>
{{ id
? $t('objects.system.globalVariables.editTitle')
: $t('objects.system.globalVariables.newTitle') }}
{{ id ? $t('reusable.edit') : $t('new', { gender: 'female' }) }}
{{ $t('objects.system.globalVariables.globalVariables', 1).toLowerCase() }}
</template>
<template #main>
<wt-input
Expand Down

0 comments on commit 02979bd

Please sign in to comment.