@it-enterprise/forcebpm-ui-kit 1.0.2-beta.11 → 1.0.2-beta.12

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.
@@ -0,0 +1,25 @@
1
+ {
2
+ "buttons": {
3
+ "close": "Close",
4
+ "share": "Share",
5
+ "yes": "Yes",
6
+ "no": "No"
7
+ },
8
+ "noData": {
9
+ "title": "No data available"
10
+ },
11
+ "tooltip": {
12
+ "actions": "Actions"
13
+ },
14
+ "updating": "Updating...",
15
+ "notification": {
16
+ "openTask": "Open task",
17
+ "openDocument": "Open document",
18
+ "openDescussion": "Open discussion"
19
+ },
20
+ "user": {
21
+ "telephone": "Phone",
22
+ "position": "Position",
23
+ "department": "Department"
24
+ }
25
+ }
@@ -0,0 +1,7 @@
1
+ import en from './en.json'
2
+ import uk from './uk.json'
3
+ import ru from './ru.json'
4
+
5
+ export const defaultMessages = { en, uk, ru }
6
+
7
+ export { en, uk, ru }
@@ -0,0 +1,25 @@
1
+ {
2
+ "buttons": {
3
+ "close": "Закрыть",
4
+ "share": "Поделиться",
5
+ "yes": "Да",
6
+ "no": "Нет"
7
+ },
8
+ "noData": {
9
+ "title": "Данные отсутствуют"
10
+ },
11
+ "tooltip": {
12
+ "actions": "Действия"
13
+ },
14
+ "updating": "Обновление...",
15
+ "notification": {
16
+ "openTask": "Открыть задачу",
17
+ "openDocument": "Открыть документ",
18
+ "openDescussion": "Открыть обсуждение"
19
+ },
20
+ "user": {
21
+ "telephone": "Телефон",
22
+ "position": "Должность",
23
+ "department": "Отдел"
24
+ }
25
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "buttons": {
3
+ "close": "Закрити",
4
+ "share": "Поділитися",
5
+ "yes": "Так",
6
+ "no": "Ні"
7
+ },
8
+ "noData": {
9
+ "title": "Дані відсутні"
10
+ },
11
+ "tooltip": {
12
+ "actions": "Дії"
13
+ },
14
+ "updating": "Оновлення...",
15
+ "notification": {
16
+ "openTask": "Відкрити задачу",
17
+ "openDocument": "Відкрити документ",
18
+ "openDescussion": "Відкрити обговорення"
19
+ },
20
+ "user": {
21
+ "telephone": "Телефон",
22
+ "position": "Посада",
23
+ "department": "Відділ"
24
+ }
25
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@it-enterprise/forcebpm-ui-kit",
3
- "version": "1.0.2-beta.11",
3
+ "version": "1.0.2-beta.12",
4
4
  "description": "FBPM UI Kit",
5
5
  "author": "it-enterprise",
6
6
  "license": "MIT",
@@ -16,44 +16,17 @@
16
16
  "require": "./plugin.js"
17
17
  },
18
18
  "./locales": {
19
- "import": "./plugin.js",
20
- "require": "./plugin.js"
21
- },
22
- "./FHtmlContent": {
23
- "import": "./src/FHtmlContent.vue",
24
- "require": "./src/FHtmlContent.vue"
25
- },
26
- "./FAvatar": {
27
- "import": "./src/FAvatar.vue",
28
- "require": "./src/FAvatar.vue"
29
- },
30
- "./FConfirmModal": {
31
- "import": "./src/FConfirmModal.vue",
32
- "require": "./src/FConfirmModal.vue"
33
- },
34
- "./FPreLoader": {
35
- "import": "./src/FPreLoader.vue",
36
- "require": "./src/FPreLoader.vue"
37
- },
38
- "./FNoData": {
39
- "import": "./src/FNoData.vue",
40
- "require": "./src/FNoData.vue"
41
- },
42
- "./FNotify": {
43
- "import": "./src/FNotify.vue",
44
- "require": "./src/FNotify.vue"
45
- },
46
- "./FShare": {
47
- "import": "./src/FShare.vue",
48
- "require": "./src/FShare.vue"
19
+ "import": "./locales/index.js",
20
+ "require": "./locales/index.js"
49
21
  },
50
- "./FContextMenu": {
51
- "import": "./src/FContextMenu.vue",
52
- "require": "./src/FContextMenu.vue"
22
+ "./locales/*": {
23
+ "import": "./locales/*",
24
+ "require": "./locales/*"
53
25
  }
54
26
  },
55
27
  "files": [
56
28
  "src",
29
+ "locales",
57
30
  "index.js",
58
31
  "plugin.js",
59
32
  "README.md",
package/plugin.js CHANGED
@@ -4,85 +4,10 @@
4
4
  */
5
5
 
6
6
  import * as components from './index.js'
7
+ import { defaultMessages } from './locales/index.js'
7
8
 
8
- // Default translations for all components
9
- export const defaultMessages = {
10
- en: {
11
- buttons: {
12
- close: 'Close',
13
- share: 'Share',
14
- yes: 'Yes',
15
- no: 'No'
16
- },
17
- noData: {
18
- title: 'No data available'
19
- },
20
- tooltip: {
21
- actions: 'Actions TEST'
22
- },
23
- updating: 'Updating...',
24
- notification: {
25
- openTask: 'Open task',
26
- openDocument: 'Open document',
27
- openDescussion: 'Open discussion'
28
- },
29
- user: {
30
- telephone: 'Phone',
31
- position: 'Position',
32
- department: 'Department'
33
- }
34
- },
35
- uk: {
36
- buttons: {
37
- close: 'Закрити',
38
- share: 'Поділитися',
39
- yes: 'Так',
40
- no: 'Ні'
41
- },
42
- noData: {
43
- title: 'Дані відсутні'
44
- },
45
- tooltip: {
46
- actions: 'Дії TEST'
47
- },
48
- updating: 'Оновлення...',
49
- notification: {
50
- openTask: 'Відкрити задачу',
51
- openDocument: 'Відкрити документ',
52
- openDescussion: 'Відкрити обговорення'
53
- },
54
- user: {
55
- telephone: 'Телефон',
56
- position: 'Посада',
57
- department: 'Відділ'
58
- }
59
- },
60
- ru: {
61
- buttons: {
62
- close: 'Закрыть',
63
- share: 'Поделиться',
64
- yes: 'Да',
65
- no: 'Нет'
66
- },
67
- noData: {
68
- title: 'Данные отсутствуют'
69
- },
70
- tooltip: {
71
- actions: 'Действия TEST'
72
- },
73
- updating: 'Обновление...',
74
- notification: {
75
- openTask: 'Открыть задачу',
76
- openDocument: 'Открыть документ',
77
- openDescussion: 'Открыть обсуждение'
78
- },
79
- user: {
80
- telephone: 'Телефон',
81
- position: 'Должность',
82
- department: 'Отдел'
83
- }
84
- }
85
- }
9
+ // Re-export for convenience
10
+ export { defaultMessages }
86
11
 
87
12
  /**
88
13
  * ForceBPM UI Kit Plugin