Skip to content

Commit

Permalink
Merge pull request #552 from webitel/hotfix/add-kz-locale
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 ec0616d + 4873857 commit b105931
Show file tree
Hide file tree
Showing 7 changed files with 953 additions and 8 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 @@ -15,7 +15,7 @@
"@vuelidate/validators": "^2.0.0",
"@vueuse/core": "^10.3.0",
"@webitel/flow-ui-sdk": "^0.1.14",
"@webitel/ui-sdk": "^23.9.1",
"@webitel/ui-sdk": "^23.9.5",
"axios": "^0.27.1",
"clipboard-copy": "^4.0.1",
"core-js": "^3.6.4",
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 @@ -4,6 +4,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';

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 @@ -21,6 +21,9 @@ export default {
}, {
name: this.$t('reusable.lang.ua'),
value: 'ua',
}, {
name: this.$t('reusable.lang.kz'),
value: 'kz',
}];
},
borderRadiusOptions() {
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 @@ -116,6 +116,10 @@ export default {
name: 'Español',
id: 'es',
},
{
name: 'Қазақ',
id: 'kz',
},
],
}),
Expand Down

0 comments on commit b105931

Please sign in to comment.