@webitel/ui-sdk 25.10.11 → 25.10.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +120 -32
- package/dist/ui-sdk.umd.cjs +12 -12
- package/package.json +2 -2
- package/src/locale/_enums/TranslationLocale.enum.ts +22 -0
- package/src/locale/en/en.js +4 -9
- package/src/locale/en/notTranslatable.en.ts +27 -0
- package/src/locale/es/es.js +0 -7
- package/src/locale/index.ts +2 -0
- package/src/locale/kz/kz.js +0 -7
- package/src/locale/pl/pl.js +0 -7
- package/src/locale/ro/ro.js +0 -7
- package/src/locale/ru/ru.js +0 -7
- package/src/locale/uk/uk.js +0 -7
- package/src/locale/uz/uz.js +0 -7
- package/src/locale/vi/vi.js +0 -7
- package/types/locale/_enums/TranslationLocale.enum.d.ts +18 -0
- package/types/locale/en/en.d.ts +1 -949
- package/types/locale/en/notTranslatable.en.d.ts +25 -0
- package/types/locale/es/es.d.ts +0 -7
- package/types/locale/i18n.d.ts +1 -921
- package/types/locale/index.d.ts +2 -921
- package/types/locale/kz/kz.d.ts +0 -7
- package/types/locale/pl/pl.d.ts +0 -7
- package/types/locale/ro/ro.d.ts +0 -7
- package/types/locale/ru/ru.d.ts +0 -7
- package/types/locale/uk/uk.d.ts +0 -7
- package/types/locale/uz/uz.d.ts +0 -7
- package/types/locale/vi/vi.d.ts +0 -7
- package/types/plugins/primevue/theme/components/table/table.d.ts +88 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/ui-sdk",
|
|
3
|
-
"version": "25.10.
|
|
3
|
+
"version": "25.10.13",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"make-all": "npm version patch --git-tag-version false && npm run build && (npm run build:types || true) && (npm run lint:fix || true) && npm run publish-lib",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@vuepic/vue-datepicker": "^4.5.1",
|
|
57
57
|
"@vueuse/components": "^13.0.0",
|
|
58
58
|
"@webitel/api-services": "^0.0.44",
|
|
59
|
-
"@webitel/styleguide": "^24.12.
|
|
59
|
+
"@webitel/styleguide": "^24.12.64",
|
|
60
60
|
"autosize": "^6.0.1",
|
|
61
61
|
"axios": "^1.8.3",
|
|
62
62
|
"clipboard-copy": "^4.0.1",
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author @dlohvinov
|
|
3
|
+
*
|
|
4
|
+
* @description
|
|
5
|
+
* List of available locales
|
|
6
|
+
*/
|
|
7
|
+
export const TranslationLocale = {
|
|
8
|
+
// supported by BA team
|
|
9
|
+
en: 'en',
|
|
10
|
+
uk: 'uk',
|
|
11
|
+
ru: 'ru',
|
|
12
|
+
|
|
13
|
+
// ai generated by frontend team
|
|
14
|
+
es: 'es',
|
|
15
|
+
kz: 'kz',
|
|
16
|
+
vi: 'vi',
|
|
17
|
+
pl: 'pl',
|
|
18
|
+
ro: 'ro',
|
|
19
|
+
uz: 'uz',
|
|
20
|
+
} as const;
|
|
21
|
+
|
|
22
|
+
export type TranslationLocale = (typeof TranslationLocale)[keyof typeof TranslationLocale];
|
package/src/locale/en/en.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import deepcopy from 'deepcopy';
|
|
1
2
|
import {
|
|
2
3
|
AgentStatus,
|
|
3
4
|
CallDirection,
|
|
@@ -20,8 +21,9 @@ import {
|
|
|
20
21
|
} from '../../enums';
|
|
21
22
|
import { AccessMode } from '../../modules/ObjectPermissions/_internals/enums/AccessMode.enum.js';
|
|
22
23
|
import { snakeToCamel } from '../../scripts';
|
|
24
|
+
import notTranslatable from './notTranslatable.en';
|
|
23
25
|
|
|
24
|
-
export default {
|
|
26
|
+
export default deepcopy(notTranslatable, {
|
|
25
27
|
// describes reusable buttons, actions, default titles, and other ui elements
|
|
26
28
|
reusable: {
|
|
27
29
|
comment: 'Comment',
|
|
@@ -52,13 +54,6 @@ export default {
|
|
|
52
54
|
expand: 'Expand',
|
|
53
55
|
collapse: 'Collapse',
|
|
54
56
|
generate: 'Generate',
|
|
55
|
-
lang: {
|
|
56
|
-
en: 'English',
|
|
57
|
-
es: 'Español',
|
|
58
|
-
ru: 'Русский',
|
|
59
|
-
uk: 'Українська',
|
|
60
|
-
kz: 'Қазақ',
|
|
61
|
-
},
|
|
62
57
|
from: 'From',
|
|
63
58
|
to: 'To',
|
|
64
59
|
tts: 'Text-to-Speech',
|
|
@@ -762,4 +757,4 @@ export default {
|
|
|
762
757
|
chatHistoryApi: 'There was an error loading the chat history',
|
|
763
758
|
markChatProcessed: 'Failed to move the chat to “Closed”',
|
|
764
759
|
},
|
|
765
|
-
};
|
|
760
|
+
});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { TranslationLocale } from '../_enums/TranslationLocale.enum';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @author @dlohvinov
|
|
5
|
+
*
|
|
6
|
+
* @description
|
|
7
|
+
* These keys should not be translated to different langs,
|
|
8
|
+
* but moved to separate file to avoid main lang file lines
|
|
9
|
+
* count increase related to other langs so that it's easier
|
|
10
|
+
* to compare any missing translations between langs
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
export default {
|
|
14
|
+
reusable: {
|
|
15
|
+
lang: {
|
|
16
|
+
[TranslationLocale.en]: 'English',
|
|
17
|
+
[TranslationLocale.es]: 'Español',
|
|
18
|
+
[TranslationLocale.ru]: 'Русский',
|
|
19
|
+
[TranslationLocale.uk]: 'Українська',
|
|
20
|
+
[TranslationLocale.kz]: 'Қазақ',
|
|
21
|
+
[TranslationLocale.vi]: 'Tiếng Việt',
|
|
22
|
+
[TranslationLocale.pl]: 'Polski',
|
|
23
|
+
[TranslationLocale.ro]: 'Română',
|
|
24
|
+
[TranslationLocale.uz]: "O'zbek",
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
};
|
package/src/locale/es/es.js
CHANGED
|
@@ -51,13 +51,6 @@ export default {
|
|
|
51
51
|
expand: 'Expandir',
|
|
52
52
|
collapse: 'Colapsar',
|
|
53
53
|
generate: 'Generar',
|
|
54
|
-
lang: {
|
|
55
|
-
en: 'Inglés',
|
|
56
|
-
es: 'Español',
|
|
57
|
-
ru: 'Ruso',
|
|
58
|
-
uk: 'Ucraniano',
|
|
59
|
-
kz: 'Kazajo',
|
|
60
|
-
},
|
|
61
54
|
from: 'Desde',
|
|
62
55
|
to: 'Hasta',
|
|
63
56
|
tts: 'Texto a Voz',
|
package/src/locale/index.ts
CHANGED
package/src/locale/kz/kz.js
CHANGED
package/src/locale/pl/pl.js
CHANGED
package/src/locale/ro/ro.js
CHANGED
|
@@ -52,13 +52,6 @@ export default {
|
|
|
52
52
|
expand: 'Extinde',
|
|
53
53
|
collapse: 'Restrânge',
|
|
54
54
|
generate: 'Generează',
|
|
55
|
-
lang: {
|
|
56
|
-
en: 'English',
|
|
57
|
-
es: 'Español',
|
|
58
|
-
ru: 'Русский',
|
|
59
|
-
uk: 'Українська',
|
|
60
|
-
kz: 'Қазақ',
|
|
61
|
-
},
|
|
62
55
|
from: 'De la',
|
|
63
56
|
to: 'Până la',
|
|
64
57
|
tts: 'Text-to-Speech',
|
package/src/locale/ru/ru.js
CHANGED
|
@@ -52,13 +52,6 @@ export default {
|
|
|
52
52
|
expand: 'Развернуть',
|
|
53
53
|
collapse: 'Свернуть',
|
|
54
54
|
generate: 'Сгенерировать',
|
|
55
|
-
lang: {
|
|
56
|
-
en: 'English',
|
|
57
|
-
es: 'Español',
|
|
58
|
-
ru: 'Русский',
|
|
59
|
-
uk: 'Українська',
|
|
60
|
-
kz: 'Қазақ',
|
|
61
|
-
},
|
|
62
55
|
from: 'От',
|
|
63
56
|
to: 'До',
|
|
64
57
|
tts: 'Text-to-Speech',
|
package/src/locale/uk/uk.js
CHANGED
|
@@ -52,13 +52,6 @@ export default {
|
|
|
52
52
|
expand: 'Розгорнути',
|
|
53
53
|
collapse: 'Згорнути',
|
|
54
54
|
generate: 'Згенерувати',
|
|
55
|
-
lang: {
|
|
56
|
-
en: 'English',
|
|
57
|
-
es: 'Español',
|
|
58
|
-
ru: 'Русский',
|
|
59
|
-
uk: 'Українська',
|
|
60
|
-
kz: 'Қазақ',
|
|
61
|
-
},
|
|
62
55
|
from: 'Від',
|
|
63
56
|
to: 'До',
|
|
64
57
|
tts: 'Text-to-Speech',
|
package/src/locale/uz/uz.js
CHANGED
|
@@ -52,13 +52,6 @@ export default {
|
|
|
52
52
|
expand: 'Kengaytirish',
|
|
53
53
|
collapse: 'Yigʻish',
|
|
54
54
|
generate: 'Generatsiya',
|
|
55
|
-
lang: {
|
|
56
|
-
en: 'English',
|
|
57
|
-
es: 'Español',
|
|
58
|
-
ru: 'Русский',
|
|
59
|
-
uk: 'Українська',
|
|
60
|
-
kz: 'Қазақ',
|
|
61
|
-
},
|
|
62
55
|
from: 'Dan',
|
|
63
56
|
to: 'Gacha',
|
|
64
57
|
tts: 'Matnni ovozga aylantirish',
|
package/src/locale/vi/vi.js
CHANGED
|
@@ -52,13 +52,6 @@ export default {
|
|
|
52
52
|
expand: 'Mở rộng',
|
|
53
53
|
collapse: 'Thu gọn',
|
|
54
54
|
generate: 'Tạo',
|
|
55
|
-
lang: {
|
|
56
|
-
en: 'Tiếng Anh',
|
|
57
|
-
es: 'Tiếng Tây Ban Nha',
|
|
58
|
-
ru: 'Tiếng Nga',
|
|
59
|
-
uk: 'Tiếng Ukraina',
|
|
60
|
-
kz: 'Tiếng Kazakh',
|
|
61
|
-
},
|
|
62
55
|
from: 'Từ',
|
|
63
56
|
to: 'Đến',
|
|
64
57
|
tts: 'Chuyển văn bản thành giọng nói',
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author @dlohvinov
|
|
3
|
+
*
|
|
4
|
+
* @description
|
|
5
|
+
* List of available locales
|
|
6
|
+
*/
|
|
7
|
+
export declare const TranslationLocale: {
|
|
8
|
+
readonly en: "en";
|
|
9
|
+
readonly uk: "uk";
|
|
10
|
+
readonly ru: "ru";
|
|
11
|
+
readonly es: "es";
|
|
12
|
+
readonly kz: "kz";
|
|
13
|
+
readonly vi: "vi";
|
|
14
|
+
readonly pl: "pl";
|
|
15
|
+
readonly ro: "ro";
|
|
16
|
+
readonly uz: "uz";
|
|
17
|
+
};
|
|
18
|
+
export type TranslationLocale = (typeof TranslationLocale)[keyof typeof TranslationLocale];
|