Skip to content

Commit

Permalink
Merge pull request #553 from webitel/hotfix/add-kz-locale-in-app
Browse files Browse the repository at this point in the history
hotfix: add kz locale[ENPF-58]
  • Loading branch information
dlohvinov authored Nov 13, 2023
2 parents 59e6a53 + c0a21a5 commit 42b0864
Show file tree
Hide file tree
Showing 7 changed files with 954 additions and 10 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@vuelidate/validators": "^2.0.0",
"@vueuse/core": "^10.3.0",
"@webitel/flow-ui-sdk": "^0.1.14",
"@webitel/ui-sdk": "^23.12.38",
"@webitel/ui-sdk": "^23.12.39",
"axios": "^0.27.1",
"clipboard-copy": "^4.0.1",
"cron-validator": "^1.3.1",
Expand Down
2 changes: 2 additions & 0 deletions src/app/locale/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 new createI18n({
Expand Down
934 changes: 934 additions & 0 deletions src/app/locale/kz/kz.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/app/plugins/webitel-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import '@webitel/ui-sdk/dist/ui-sdk.css';
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';

Expand All @@ -21,3 +22,4 @@ export default [WebitelUI, { eventBus, globals }];
i18n.global.mergeLocaleMessage('en', WebitelUIEn);
i18n.global.mergeLocaleMessage('ru', WebitelUIRu);
i18n.global.mergeLocaleMessage('ua', WebitelUIUa);
i18n.global.mergeLocaleMessage('kz', WebitelUIKz);
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ export default {
}, {
name: this.$t('reusable.lang.ua'),
value: 'ua',
},
];
}, {
name: this.$t('reusable.lang.kz'),
value: 'kz',
}];
},
borderRadiusOptions() {
return [
Expand Down
4 changes: 4 additions & 0 deletions src/modules/settings/components/the-settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ export default {
name: 'Español',
id: 'es',
},
{
name: 'Қазақ',
id: 'kz',
},
],
}),
validations() {
Expand Down

0 comments on commit 42b0864

Please sign in to comment.