@iobroker/adapter-react-v5 3.1.34 → 3.2.0
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/Components/404.js +0 -23
- package/Components/404.js.map +1 -1
- package/Components/ColorPicker.js +6 -37
- package/Components/ColorPicker.js.map +1 -1
- package/Components/ComplexCron.js +10 -84
- package/Components/ComplexCron.js.map +1 -1
- package/Components/CustomModal.js +29 -54
- package/Components/CustomModal.js.map +1 -1
- package/Components/FileBrowser.js +15 -265
- package/Components/FileBrowser.js.map +1 -1
- package/Components/FileViewer.js +7 -68
- package/Components/FileViewer.js.map +1 -1
- package/Components/Icon.d.ts +1 -1
- package/Components/Icon.js +2 -42
- package/Components/Icon.js.map +1 -1
- package/Components/IconPicker.js +6 -28
- package/Components/IconPicker.js.map +1 -1
- package/Components/IconSelector.js +3 -55
- package/Components/IconSelector.js.map +1 -1
- package/Components/Image.js +1 -38
- package/Components/Image.js.map +1 -1
- package/Components/JsonConfigComponent/ChipInput.js +66 -197
- package/Components/JsonConfigComponent/ChipInput.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigAlive.js +0 -31
- package/Components/JsonConfigComponent/ConfigAlive.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigAutocomplete.js +6 -39
- package/Components/JsonConfigComponent/ConfigAutocomplete.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigAutocompleteSendTo.js +6 -52
- package/Components/JsonConfigComponent/ConfigAutocompleteSendTo.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigCRON.js +5 -39
- package/Components/JsonConfigComponent/ConfigCRON.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigCertificateSelect.js +4 -42
- package/Components/JsonConfigComponent/ConfigCertificateSelect.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigCheckbox.js +0 -28
- package/Components/JsonConfigComponent/ConfigCheckbox.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigChip.js +4 -33
- package/Components/JsonConfigComponent/ConfigChip.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigColor.js +0 -34
- package/Components/JsonConfigComponent/ConfigColor.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigCoordinates.js +0 -33
- package/Components/JsonConfigComponent/ConfigCoordinates.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigCustom.js +14 -73
- package/Components/JsonConfigComponent/ConfigCustom.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigDatePicker.js +0 -25
- package/Components/JsonConfigComponent/ConfigDatePicker.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigFile.js +0 -46
- package/Components/JsonConfigComponent/ConfigFile.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigFileSelector.js +7 -126
- package/Components/JsonConfigComponent/ConfigFileSelector.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigFunc.js +0 -34
- package/Components/JsonConfigComponent/ConfigFunc.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigGeneric.js +15 -110
- package/Components/JsonConfigComponent/ConfigGeneric.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigIP.js +2 -35
- package/Components/JsonConfigComponent/ConfigIP.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigImageUpload.js +4 -44
- package/Components/JsonConfigComponent/ConfigImageUpload.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigInstanceSelect.js +1 -59
- package/Components/JsonConfigComponent/ConfigInstanceSelect.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigJsonEditor.js +7 -40
- package/Components/JsonConfigComponent/ConfigJsonEditor.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigLanguage.js +2 -42
- package/Components/JsonConfigComponent/ConfigLanguage.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigNumber.js +2 -45
- package/Components/JsonConfigComponent/ConfigNumber.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigObjectId.js +6 -40
- package/Components/JsonConfigComponent/ConfigObjectId.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigPanel.js +7 -91
- package/Components/JsonConfigComponent/ConfigPanel.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigPassword.js +0 -42
- package/Components/JsonConfigComponent/ConfigPassword.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigPattern.js +0 -25
- package/Components/JsonConfigComponent/ConfigPattern.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigRoom.js +0 -34
- package/Components/JsonConfigComponent/ConfigRoom.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigSelect.js +4 -34
- package/Components/JsonConfigComponent/ConfigSelect.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigSelectSendTo.js +11 -67
- package/Components/JsonConfigComponent/ConfigSelectSendTo.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigSendto.js +8 -91
- package/Components/JsonConfigComponent/ConfigSendto.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigSetState.js +0 -55
- package/Components/JsonConfigComponent/ConfigSetState.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigSlider.js +0 -28
- package/Components/JsonConfigComponent/ConfigSlider.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigStaticDivider.js +0 -21
- package/Components/JsonConfigComponent/ConfigStaticDivider.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigStaticHeader.js +0 -24
- package/Components/JsonConfigComponent/ConfigStaticHeader.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigStaticImage.js +0 -23
- package/Components/JsonConfigComponent/ConfigStaticImage.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigStaticText.js +0 -31
- package/Components/JsonConfigComponent/ConfigStaticText.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigTable.js +13 -105
- package/Components/JsonConfigComponent/ConfigTable.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigTabs.js +2 -35
- package/Components/JsonConfigComponent/ConfigTabs.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigText.js +0 -34
- package/Components/JsonConfigComponent/ConfigText.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigTextSendTo.js +0 -37
- package/Components/JsonConfigComponent/ConfigTextSendTo.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigTimePicker.js +0 -25
- package/Components/JsonConfigComponent/ConfigTimePicker.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigTopic.js +0 -29
- package/Components/JsonConfigComponent/ConfigTopic.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigUser.js +2 -40
- package/Components/JsonConfigComponent/ConfigUser.js.map +1 -1
- package/Components/JsonConfigComponent/index.js +5 -81
- package/Components/JsonConfigComponent/index.js.map +1 -1
- package/Components/Loader.js +2 -20
- package/Components/Loader.js.map +1 -1
- package/Components/Loaders/PT.js +2 -20
- package/Components/Loaders/PT.js.map +1 -1
- package/Components/Loaders/Vendor.js +2 -21
- package/Components/Loaders/Vendor.js.map +1 -1
- package/Components/Logo.js +6 -39
- package/Components/Logo.js.map +1 -1
- package/Components/MDUtils.js +3 -27
- package/Components/MDUtils.js.map +1 -1
- package/Components/ObjectBrowser.d.ts +1 -1
- package/Components/ObjectBrowser.js +181 -788
- package/Components/ObjectBrowser.js.map +1 -1
- package/Components/Router.js +7 -31
- package/Components/Router.js.map +1 -1
- package/Components/SaveCloseButtons.js +2 -32
- package/Components/SaveCloseButtons.js.map +1 -1
- package/Components/Schedule.js +29 -251
- package/Components/Schedule.js.map +1 -1
- package/Components/SelectWithIcon.d.ts +1 -1
- package/Components/SelectWithIcon.js +0 -48
- package/Components/SelectWithIcon.js.map +1 -1
- package/Components/SimpleCron/cron2text.js +45 -91
- package/Components/SimpleCron/cron2text.js.map +1 -1
- package/Components/SimpleCron/cronText.js +0 -6
- package/Components/SimpleCron/cronText.js.map +1 -1
- package/Components/SimpleCron/index.js +19 -102
- package/Components/SimpleCron/index.js.map +1 -1
- package/Components/SimpleCron/jquery.cron.locale.js +44 -24
- package/Components/SimpleCron/jquery.cron.locale.js.map +1 -1
- package/Components/TabContainer.js +2 -23
- package/Components/TabContainer.js.map +1 -1
- package/Components/TabContent.js +2 -22
- package/Components/TabContent.js.map +1 -1
- package/Components/TabHeader.js +1 -17
- package/Components/TabHeader.js.map +1 -1
- package/Components/TableResize.js +6 -51
- package/Components/TableResize.js.map +1 -1
- package/Components/TextWithIcon.js +0 -20
- package/Components/TextWithIcon.js.map +1 -1
- package/Components/ToggleThemeMenu.js +5 -13
- package/Components/ToggleThemeMenu.js.map +1 -1
- package/Components/TreeTable.js +4 -121
- package/Components/TreeTable.js.map +1 -1
- package/Components/UploadImage.js +17 -60
- package/Components/UploadImage.js.map +1 -1
- package/Components/Utils.js +87 -263
- package/Components/Utils.js.map +1 -1
- package/Components/copy-to-clipboard.js +16 -38
- package/Components/copy-to-clipboard.js.map +1 -1
- package/Components/withWidth.js +2 -10
- package/Components/withWidth.js.map +1 -1
- package/Connection.d.ts +1 -0
- package/Connection.js +156 -527
- package/Connection.js.map +1 -1
- package/Dialogs/ComplexCron.js +0 -34
- package/Dialogs/ComplexCron.js.map +1 -1
- package/Dialogs/Confirm.js +1 -39
- package/Dialogs/Confirm.js.map +1 -1
- package/Dialogs/Cron.js +1 -37
- package/Dialogs/Cron.js.map +1 -1
- package/Dialogs/Error.d.ts +1 -1
- package/Dialogs/Error.js +2 -29
- package/Dialogs/Error.js.map +1 -1
- package/Dialogs/FileSelect.js +2 -36
- package/Dialogs/FileSelect.js.map +1 -1
- package/Dialogs/Message.js +2 -27
- package/Dialogs/Message.js.map +1 -1
- package/Dialogs/SelectID.d.ts +1 -1
- package/Dialogs/SelectID.js +3 -40
- package/Dialogs/SelectID.js.map +1 -1
- package/Dialogs/SimpleCron.js +1 -33
- package/Dialogs/SimpleCron.js.map +1 -1
- package/Dialogs/TextInput.js +2 -34
- package/Dialogs/TextInput.js.map +1 -1
- package/GenericApp.js +55 -150
- package/GenericApp.js.map +1 -1
- package/Prompt.js +0 -2
- package/Prompt.js.map +1 -1
- package/README.md +11 -4
- package/Theme.js +7 -22
- package/Theme.js.map +1 -1
- package/i18n/uk.json +326 -0
- package/i18n.d.ts +2 -0
- package/i18n.js +9 -29
- package/i18n.js.map +1 -1
- package/icons/IconAdapter.d.ts +2 -2
- package/icons/IconAdapter.js +2 -6
- package/icons/IconAdapter.js.map +1 -1
- package/icons/IconAlias.d.ts +2 -2
- package/icons/IconAlias.js +2 -6
- package/icons/IconAlias.js.map +1 -1
- package/icons/IconChannel.d.ts +2 -2
- package/icons/IconChannel.js +2 -6
- package/icons/IconChannel.js.map +1 -1
- package/icons/IconClearFilter.d.ts +2 -2
- package/icons/IconClearFilter.js +0 -5
- package/icons/IconClearFilter.js.map +1 -1
- package/icons/IconClosed.d.ts +2 -2
- package/icons/IconClosed.js +0 -5
- package/icons/IconClosed.js.map +1 -1
- package/icons/IconCopy.d.ts +2 -2
- package/icons/IconCopy.js +0 -5
- package/icons/IconCopy.js.map +1 -1
- package/icons/IconDevice.d.ts +2 -2
- package/icons/IconDevice.js +0 -5
- package/icons/IconDevice.js.map +1 -1
- package/icons/IconDocument.d.ts +2 -2
- package/icons/IconDocument.js +0 -5
- package/icons/IconDocument.js.map +1 -1
- package/icons/IconDocumentReadOnly.d.ts +2 -2
- package/icons/IconDocumentReadOnly.js +0 -5
- package/icons/IconDocumentReadOnly.js.map +1 -1
- package/icons/IconExpert.d.ts +2 -2
- package/icons/IconExpert.js +0 -5
- package/icons/IconExpert.js.map +1 -1
- package/icons/IconFx.d.ts +2 -2
- package/icons/IconFx.js +0 -5
- package/icons/IconFx.js.map +1 -1
- package/icons/IconInstance.d.ts +2 -2
- package/icons/IconInstance.js +0 -5
- package/icons/IconInstance.js.map +1 -1
- package/icons/IconLogout.d.ts +2 -2
- package/icons/IconLogout.js +0 -5
- package/icons/IconLogout.js.map +1 -1
- package/icons/IconNoIcon.d.ts +2 -2
- package/icons/IconNoIcon.js +0 -5
- package/icons/IconNoIcon.js.map +1 -1
- package/icons/IconOpen.d.ts +2 -2
- package/icons/IconOpen.js +0 -5
- package/icons/IconOpen.js.map +1 -1
- package/icons/IconState.d.ts +2 -2
- package/icons/IconState.js +0 -6
- package/icons/IconState.js.map +1 -1
- package/package.json +15 -15
package/i18n/uk.json
ADDED
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Not a number": "Не номер",
|
|
3
|
+
"ra_%s object(s) processed": "Оброблено %s об’єктів",
|
|
4
|
+
"ra_%s was imported": "%s було імпортовано",
|
|
5
|
+
"ra_Add new child object to selected parent": "Додати новий дочірній об’єкт до вибраного батьківського",
|
|
6
|
+
"ra_Add objects tree from JSON file": "Додайте дерево об’єктів із файлу JSON",
|
|
7
|
+
"ra_Add row": "Додати рядок",
|
|
8
|
+
"ra_All items are filtered out": "Усі елементи відфільтровано",
|
|
9
|
+
"ra_All objects": "Всі об'єкти",
|
|
10
|
+
"ra_Are you sure?": "Ти впевнений?",
|
|
11
|
+
"ra_Auto (no custom columns)": "Автоматично (без спеціальних стовпців)",
|
|
12
|
+
"ra_Back to %s": "Назад до %s",
|
|
13
|
+
"ra_Background image": "Фонове зображення",
|
|
14
|
+
"ra_Cancel": "Скасувати",
|
|
15
|
+
"ra_Cannot add items with set filter": "Неможливо додати елементи зі встановленим фільтром",
|
|
16
|
+
"ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser": "Неможливо визначити положення: системні налаштування порожні, а визначення GPS вимкнено в браузері",
|
|
17
|
+
"ra_Cannot find \"%s\"": "Не вдається знайти \"%s\"",
|
|
18
|
+
"ra_Cannot read \"%s\"": "Неможливо прочитати \"%s\"",
|
|
19
|
+
"ra_Cannot retrieve options, as instance is offline": "Неможливо отримати параметри, оскільки екземпляр офлайн",
|
|
20
|
+
"ra_Cannot update attribute, because not found in the object": "Неможливо оновити атрибут, оскільки його не знайдено в об’єкті",
|
|
21
|
+
"ra_Cannot upload": "Неможливо завантажити",
|
|
22
|
+
"ra_Change color theme": "Змінити кольорову тему",
|
|
23
|
+
"ra_Changed from": "Змінено з",
|
|
24
|
+
"ra_Channel → State": "Канал → Стан",
|
|
25
|
+
"ra_Clear": "Видалити",
|
|
26
|
+
"ra_Clear filter": "Очистити фільтр",
|
|
27
|
+
"ra_Clear icon": "Очистити значок",
|
|
28
|
+
"ra_Close": "Закрити",
|
|
29
|
+
"ra_Collapse all nodes": "Згорнути всі вузли",
|
|
30
|
+
"ra_Collapse one step node": "Згорнути на один рівень",
|
|
31
|
+
"ra_Configure": "Налаштувати",
|
|
32
|
+
"ra_Configure visible columns": "Налаштувати видимі стовпці",
|
|
33
|
+
"ra_Confirm deletion of %s": "Підтвердити видалення %s",
|
|
34
|
+
"ra_Connected": "Підключено",
|
|
35
|
+
"ra_Copied": "Скопійовано",
|
|
36
|
+
"ra_Copied %s": "Скопійовано \"%s\"",
|
|
37
|
+
"ra_Copy content": "Скопіюйте вміст",
|
|
38
|
+
"ra_Create": "Створити",
|
|
39
|
+
"ra_Create folder": "Створити папку",
|
|
40
|
+
"ra_Create new folder in %s": "Створіть нову папку в %s",
|
|
41
|
+
"ra_Crop": "Урожай",
|
|
42
|
+
"ra_Define functions": "Визначити функції",
|
|
43
|
+
"ra_Define rooms": "Визначте кімнати",
|
|
44
|
+
"ra_Define schedule": "Визначити розклад",
|
|
45
|
+
"ra_Define schedule...": "Визначити розклад...",
|
|
46
|
+
"ra_Delete": "Видалити",
|
|
47
|
+
"ra_Delete (no confirm for 5 mins)": "Видалити (без підтвердження протягом 5 хвилин)",
|
|
48
|
+
"ra_Delete current row": "Видалити поточний рядок",
|
|
49
|
+
"ra_Deselect all": "Скасувати вибір усіх",
|
|
50
|
+
"ra_Device → Channel → State": "Пристрій → Канал → Стан",
|
|
51
|
+
"ra_Discard": "Відкинути",
|
|
52
|
+
"ra_Disconnected": "Відключено",
|
|
53
|
+
"ra_Double click to reset table layout": "Двічі клацніть, щоб скинути макет таблиці",
|
|
54
|
+
"ra_Drag 'n' drop some files here, or click to select files": "Перетягніть деякі файли сюди або натисніть, щоб вибрати файли",
|
|
55
|
+
"ra_Drop file here": "Перетягніть файл сюди",
|
|
56
|
+
"ra_Drop the files here...": "Перетягніть файл сюди...",
|
|
57
|
+
"ra_Duplicate name": "Повторюване ім'я",
|
|
58
|
+
"ra_Edit custom config": "Редагувати спеціальну конфігурацію",
|
|
59
|
+
"ra_Edit object field": "Поле редагування об'єкта",
|
|
60
|
+
"ra_Error": "Помилка",
|
|
61
|
+
"ra_Expand all nodes": "Розгорнути всі вузли",
|
|
62
|
+
"ra_Expand one step node": "Розгорніть один рівень",
|
|
63
|
+
"ra_Failed to open JSON File": "Не вдалося відкрити файл JSON",
|
|
64
|
+
"ra_File is too big. Max %sk allowed. Try use SVG.": "Файл завеликий. Максимально дозволено %sk. Спробуйте використовувати SVG.",
|
|
65
|
+
"ra_Filter": "фільтр",
|
|
66
|
+
"ra_Folder name": "Назва папки",
|
|
67
|
+
"ra_Folder → Channel → State": "Папка → Канал → Стан",
|
|
68
|
+
"ra_Folder → Device → Channel → State": "Папка → Пристрій → Канал → Стан",
|
|
69
|
+
"ra_Folder → State": "Папка → Стан",
|
|
70
|
+
"ra_Folders always first": "Папки завжди першими",
|
|
71
|
+
"ra_Good luck": "Удачі",
|
|
72
|
+
"ra_Hide empty folders": "Приховати порожні папки",
|
|
73
|
+
"ra_If no file will be created in the folder, it will disappear after the browser closed": "Якщо в папці не буде створено файл, він зникне після закриття браузера",
|
|
74
|
+
"ra_Instance %s is alive": "Примірник %s живий",
|
|
75
|
+
"ra_Instance %s is not alive": "Примірник %s не живий",
|
|
76
|
+
"ra_Invalid CRON": "Недійсний CRON",
|
|
77
|
+
"ra_Invalid parent folder!": "Недійсна батьківська папка!",
|
|
78
|
+
"ra_Invalid structure": "Недійсна структура",
|
|
79
|
+
"ra_JSON editor": "Редактор JSON",
|
|
80
|
+
"ra_Last change": "Остання зміна",
|
|
81
|
+
"ra_Listen on all IPs": "Прослуховування на всіх IP",
|
|
82
|
+
"ra_Load configuration from file": "Завантажити конфігурацію з файлу",
|
|
83
|
+
"ra_Message": "повідомлення",
|
|
84
|
+
"ra_Move down": "Рухатися вниз",
|
|
85
|
+
"ra_Move up": "Рухатися вгору",
|
|
86
|
+
"ra_Non-experts may create new objects only in \"0_userdata.0\" or \"alias.0\".": "Неексперти можуть створювати нові об’єкти лише в «0_userdata.0» або «alias.0».",
|
|
87
|
+
"ra_Objects": "Об'єкти",
|
|
88
|
+
"ra_Ok": "В порядку",
|
|
89
|
+
"ra_On weekdays": "В будні дні",
|
|
90
|
+
"ra_Only following structures of objects are available:": "Доступні тільки такі структури об'єктів:",
|
|
91
|
+
"ra_Only selected": "Тільки обрані",
|
|
92
|
+
"ra_Owner group": "Група власників",
|
|
93
|
+
"ra_Owner user": "Користувач-власник",
|
|
94
|
+
"ra_Passwords are not equal!": "Паролі не бувають рівними!",
|
|
95
|
+
"ra_Place your files here or click here to open the browse dialog": "Розмістіть свої файли тут або натисніть тут, щоб відкрити діалогове вікно перегляду",
|
|
96
|
+
"ra_Please confirm": "Будь-ласка підтвердіть",
|
|
97
|
+
"ra_Please select object ID...": "Виберіть ідентифікатор об'єкта...",
|
|
98
|
+
"ra_Quality code": "якість",
|
|
99
|
+
"ra_Refresh tree": "Оновити дерево",
|
|
100
|
+
"ra_Reload files": "Перезавантажте файли",
|
|
101
|
+
"ra_Repeat": "Повторіть",
|
|
102
|
+
"ra_Root": "Корінь",
|
|
103
|
+
"ra_Save": "зберегти",
|
|
104
|
+
"ra_Save and close": "Зберегти та закрити",
|
|
105
|
+
"ra_Save configuration to file": "Зберегти конфігурацію у файл",
|
|
106
|
+
"ra_Save objects tree as JSON file": "Зберегти дерево об’єктів як файл JSON",
|
|
107
|
+
"ra_Select all": "Вибрати все",
|
|
108
|
+
"ra_Select predefined icon": "Виберіть попередньо визначений значок",
|
|
109
|
+
"ra_Selected": "Вибране",
|
|
110
|
+
"ra_Show lines between rows": "Показувати лінії між рядками",
|
|
111
|
+
"ra_Show/hide filter input": "Показати/сховати введення фільтра",
|
|
112
|
+
"ra_Some data are not stored. Discard?": "Деякі дані не зберігаються. Відкинути?",
|
|
113
|
+
"ra_States": "держави",
|
|
114
|
+
"ra_Suppress question for next %s minutes": "Приховати запитання на наступні %s хвилин",
|
|
115
|
+
"ra_System language": "Системна мова",
|
|
116
|
+
"ra_The experts may create objects everywhere but from second level (e.g. \"vis.0\" or \"javascript.0\").": "Експерти можуть створювати об’єкти всюди, крім другого рівня (наприклад, «vis.0» або «javascript.0»).",
|
|
117
|
+
"ra_The page you are looking for was not found": "Сторінка, яку ви шукаєте, не знайдена",
|
|
118
|
+
"ra_Timestamp": "Мітка часу",
|
|
119
|
+
"ra_Toggle expert mode": "Перемкнути експертний режим",
|
|
120
|
+
"ra_Toggle the states view": "Перемкнути перегляд штатів",
|
|
121
|
+
"ra_Toggle view mode": "Перемкнути режим перегляду",
|
|
122
|
+
"ra_Too big": "Занадто великий",
|
|
123
|
+
"ra_Too small": "Занадто малий",
|
|
124
|
+
"ra_Transparent dialog": "Прозорий діалог",
|
|
125
|
+
"ra_Unknown error!": "Невідома помилка!",
|
|
126
|
+
"ra_Update": "оновлення",
|
|
127
|
+
"ra_Upload file": "Завантажити файл",
|
|
128
|
+
"ra_Used system settings": "Використані системні налаштування",
|
|
129
|
+
"ra_User files": "Файли користувача",
|
|
130
|
+
"ra_Value": "Значення",
|
|
131
|
+
"ra_View: %s": "Перегляд: %s",
|
|
132
|
+
"ra_Width": "Ширина",
|
|
133
|
+
"ra_You can filter entries by entering here some text": "Ви можете фільтрувати записи, ввівши тут певний текст",
|
|
134
|
+
"ra___different__": "інший",
|
|
135
|
+
"ra_aclEveryone_read_object": "Кожен може читати об'єкт",
|
|
136
|
+
"ra_aclEveryone_read_state": "Кожен може читати стан",
|
|
137
|
+
"ra_aclEveryone_write_object": "Кожен може написати об'єкт",
|
|
138
|
+
"ra_aclEveryone_write_state": "Кожен може написати стан",
|
|
139
|
+
"ra_aclGroup_read_object": "Група може читати об'єкт",
|
|
140
|
+
"ra_aclGroup_read_state": "Група може читати стан",
|
|
141
|
+
"ra_aclGroup_write_object": "Група може писати об'єкт",
|
|
142
|
+
"ra_aclGroup_write_state": "Група може писати стан",
|
|
143
|
+
"ra_aclOwner_read_object": "Власник може читати об'єкт",
|
|
144
|
+
"ra_aclOwner_read_state": "Власник може читати стан",
|
|
145
|
+
"ra_aclOwner_write_object": "Власник може написати об'єкт",
|
|
146
|
+
"ra_aclOwner_write_state": "Власник може написати стан",
|
|
147
|
+
"ra_buttons": "кнопки",
|
|
148
|
+
"ra_changedFrom": "Змінено з",
|
|
149
|
+
"ra_close": "закрити",
|
|
150
|
+
"ra_daysShortText": "днів",
|
|
151
|
+
"ra_dow_Fr": "О",
|
|
152
|
+
"ra_dow_Mo": "пн",
|
|
153
|
+
"ra_dow_Sa": "Sa",
|
|
154
|
+
"ra_dow_Su": "Нд",
|
|
155
|
+
"ra_dow_Th": "чт",
|
|
156
|
+
"ra_dow_Tu": "вт",
|
|
157
|
+
"ra_dow_We": "ми",
|
|
158
|
+
"ra_expertMode": "Експертний режим",
|
|
159
|
+
"ra_filter_customs": "Налаштування",
|
|
160
|
+
"ra_filter_func": "функція",
|
|
161
|
+
"ra_filter_id": "ID",
|
|
162
|
+
"ra_filter_name": "Ім'я",
|
|
163
|
+
"ra_filter_role": "Роль",
|
|
164
|
+
"ra_filter_room": "Кімната",
|
|
165
|
+
"ra_filter_type": "Тип",
|
|
166
|
+
"ra_invalidConfig": "Недійсні налаштування",
|
|
167
|
+
"ra_lastChange": "Остання зміна",
|
|
168
|
+
"ra_months_Apr": "квіт",
|
|
169
|
+
"ra_months_Aug": "серп",
|
|
170
|
+
"ra_months_Dec": "груд",
|
|
171
|
+
"ra_months_Feb": "лютий",
|
|
172
|
+
"ra_months_Jan": "січня",
|
|
173
|
+
"ra_months_Jul": "лип",
|
|
174
|
+
"ra_months_Jun": "черв",
|
|
175
|
+
"ra_months_Mai": "травень",
|
|
176
|
+
"ra_months_Mar": "березень",
|
|
177
|
+
"ra_months_Nov": "Листопад",
|
|
178
|
+
"ra_months_Oct": "жовт",
|
|
179
|
+
"ra_months_Sep": "вер",
|
|
180
|
+
"ra_none": "немає",
|
|
181
|
+
"ra_object_changed_by": "Об'єкт змінено",
|
|
182
|
+
"ra_object_changed_by_user": "Об'єкт востаннє змінено о",
|
|
183
|
+
"ra_otherConfig": "Налаштування з іншого адаптера %s",
|
|
184
|
+
"ra_qualityCode": "Код якості",
|
|
185
|
+
"ra_repeat": "повторити",
|
|
186
|
+
"ra_state_changed_by": "Стан змінено на",
|
|
187
|
+
"ra_state_changed_from": "Об'єкт змінено з",
|
|
188
|
+
"ra_timestamp": "Мітка часу",
|
|
189
|
+
"ra_tooltip_ack": "Визнано",
|
|
190
|
+
"ra_tooltip_comment": "коментар",
|
|
191
|
+
"ra_tooltip_copyState": "Скопіюйте значення стану",
|
|
192
|
+
"ra_tooltip_customConfig": "Спеціальні налаштування",
|
|
193
|
+
"ra_tooltip_deleteObject": "Видалити об'єкт",
|
|
194
|
+
"ra_tooltip_editObject": "Редагувати об'єкт",
|
|
195
|
+
"ra_tooltip_editState": "Відредагуйте значення стану",
|
|
196
|
+
"ra_tooltip_from": "Від",
|
|
197
|
+
"ra_tooltip_lc": "Востаннє змінено",
|
|
198
|
+
"ra_tooltip_quality": "якість",
|
|
199
|
+
"ra_tooltip_ts": "Позначка часу",
|
|
200
|
+
"ra_tooltip_user": "Користувач",
|
|
201
|
+
"ra_tooltip_value": "Значення",
|
|
202
|
+
"ra_use seconds": "використовуйте секунди",
|
|
203
|
+
"ra_val": "Значення",
|
|
204
|
+
"sc_cron": "CRON",
|
|
205
|
+
"sc_date": "Дата",
|
|
206
|
+
"sc_dates": "дати",
|
|
207
|
+
"sc_dows": "День тижня",
|
|
208
|
+
"sc_every": "кожен",
|
|
209
|
+
"sc_everyN_dates": "кожні N днів",
|
|
210
|
+
"sc_everyN_dows": "кожні N днів тижня",
|
|
211
|
+
"sc_everyN_hours": "кожні N годин",
|
|
212
|
+
"sc_everyN_minutes": "кожні N хвилин",
|
|
213
|
+
"sc_everyN_months": "кожні N місяців",
|
|
214
|
+
"sc_everyN_seconds": "кожні N секунд",
|
|
215
|
+
"sc_every_dates": "кожен день",
|
|
216
|
+
"sc_every_dows": "кожен день тижня",
|
|
217
|
+
"sc_every_hours": "щогодини",
|
|
218
|
+
"sc_every_minutes": "кожну хвилину",
|
|
219
|
+
"sc_every_months": "щомісяця",
|
|
220
|
+
"sc_every_seconds": "кожна секунда",
|
|
221
|
+
"sc_from": "Від",
|
|
222
|
+
"sc_hours": "години",
|
|
223
|
+
"sc_interval": "Інтервал",
|
|
224
|
+
"sc_intervalBetween": "Інтервал між",
|
|
225
|
+
"sc_minutes": "хвилин",
|
|
226
|
+
"sc_months": "місяців",
|
|
227
|
+
"sc_once": "Один раз",
|
|
228
|
+
"sc_period": "Крапка",
|
|
229
|
+
"sc_seconds": "секунд",
|
|
230
|
+
"sc_simple": "просто",
|
|
231
|
+
"sc_specific": "Конкретний час",
|
|
232
|
+
"sc_specific_dates": "конкретні дати",
|
|
233
|
+
"sc_specific_dows": "конкретний день тижня",
|
|
234
|
+
"sc_specific_hours": "конкретні години",
|
|
235
|
+
"sc_specific_minutes": "конкретні хвилини",
|
|
236
|
+
"sc_specific_months": "конкретні місяці",
|
|
237
|
+
"sc_specific_seconds": "конкретні секунди",
|
|
238
|
+
"sc_time": "час",
|
|
239
|
+
"sc_to": "до",
|
|
240
|
+
"sc_wizard": "майстер",
|
|
241
|
+
"sch_all": "все",
|
|
242
|
+
"sch_astroDay": "Астродень",
|
|
243
|
+
"sch_astroNight": "Астро ніч",
|
|
244
|
+
"sch_astro_dawn": "Світанок",
|
|
245
|
+
"sch_astro_dusk": "Сутінки",
|
|
246
|
+
"sch_astro_goldenHour": "Золота година",
|
|
247
|
+
"sch_astro_goldenHourEnd": "Кінець золотої години",
|
|
248
|
+
"sch_astro_nadir": "Надір",
|
|
249
|
+
"sch_astro_nauticalDawn": "Морський світанок",
|
|
250
|
+
"sch_astro_nauticalDusk": "Морські сутінки",
|
|
251
|
+
"sch_astro_night": "ніч",
|
|
252
|
+
"sch_astro_nightEnd": "Кінець ночі",
|
|
253
|
+
"sch_astro_solarNoon": "Сонячний полудень",
|
|
254
|
+
"sch_astro_sunrise": "Схід сонця",
|
|
255
|
+
"sch_astro_sunriseEnd": "Кінець сходу сонця",
|
|
256
|
+
"sch_astro_sunset": "Захід сонця",
|
|
257
|
+
"sch_astro_sunsetStart": "Початок заходу сонця",
|
|
258
|
+
"sch_at": "в",
|
|
259
|
+
"sch_desc_atTime": "в %s",
|
|
260
|
+
"sch_desc_everyDay": "кожен день",
|
|
261
|
+
"sch_desc_everyHour": "щогодини",
|
|
262
|
+
"sch_desc_everyMinute": "кожну хвилину",
|
|
263
|
+
"sch_desc_everyMonth": "щомісяця",
|
|
264
|
+
"sch_desc_everyNDay": "кожен %s день",
|
|
265
|
+
"sch_desc_everyNHours": "кожні %s годин",
|
|
266
|
+
"sch_desc_everyNMinutes": "кожні %s хвилин",
|
|
267
|
+
"sch_desc_everyNMonths": "кожні %s місяців",
|
|
268
|
+
"sch_desc_everyNWeeks": "кожні %s тижнів",
|
|
269
|
+
"sch_desc_everyNYears": "кожні %s років",
|
|
270
|
+
"sch_desc_everyWeek": "щотижня",
|
|
271
|
+
"sch_desc_everyYear": "щороку",
|
|
272
|
+
"sch_desc_intervalFromTo": "від %s до %s",
|
|
273
|
+
"sch_desc_never": "ніколи",
|
|
274
|
+
"sch_desc_onDate": "на %s з %s",
|
|
275
|
+
"sch_desc_onDates": "на %s і %s з",
|
|
276
|
+
"sch_desc_onEveryDate": "на кожну дату",
|
|
277
|
+
"sch_desc_onMonth": "%s",
|
|
278
|
+
"sch_desc_onMonths": "%s і %s",
|
|
279
|
+
"sch_desc_onWeekday": "на %s",
|
|
280
|
+
"sch_desc_onWeekdays": "на %s і %s",
|
|
281
|
+
"sch_desc_onWeekends": "на вихідних",
|
|
282
|
+
"sch_desc_onWorkdays": "в робочі дні",
|
|
283
|
+
"sch_desc_onceInPast": "більше не виконуватиметься, оскільки запуск у минулому",
|
|
284
|
+
"sch_desc_once_on": "на %s",
|
|
285
|
+
"sch_desc_validFrom": "від %s",
|
|
286
|
+
"sch_desc_validFromTo": "Виконати від до",
|
|
287
|
+
"sch_desc_validTo": "до %s",
|
|
288
|
+
"sch_every": "кожен",
|
|
289
|
+
"sch_exactTime": "Конкретний час",
|
|
290
|
+
"sch_from": "від",
|
|
291
|
+
"sch_fromTo": "Від до",
|
|
292
|
+
"sch_intervalTime": "Час інтервалу",
|
|
293
|
+
"sch_invert": "інвертувати",
|
|
294
|
+
"sch_no_one": "немає",
|
|
295
|
+
"sch_on": "на",
|
|
296
|
+
"sch_period": "Крапка",
|
|
297
|
+
"sch_periodDaily": "Щодня",
|
|
298
|
+
"sch_periodDates": "дати",
|
|
299
|
+
"sch_periodDay": "День",
|
|
300
|
+
"sch_periodEvery": "кожен",
|
|
301
|
+
"sch_periodEveryDay": "Кожен день",
|
|
302
|
+
"sch_periodEveryMonth": "Щомісяця",
|
|
303
|
+
"sch_periodEveryWeek": "Щотижня",
|
|
304
|
+
"sch_periodEveryYear": "Щороку",
|
|
305
|
+
"sch_periodHours": "години",
|
|
306
|
+
"sch_periodMinutes": "хвилин",
|
|
307
|
+
"sch_periodMonth": "місяць",
|
|
308
|
+
"sch_periodMonthly": "Щомісяця",
|
|
309
|
+
"sch_periodOnce": "Один раз",
|
|
310
|
+
"sch_periodSpecificMonths": "Конкретні місяці",
|
|
311
|
+
"sch_periodWeek": "тиждень",
|
|
312
|
+
"sch_periodWeekdays": "будні",
|
|
313
|
+
"sch_periodWeekend": "Вихідні",
|
|
314
|
+
"sch_periodWeekly": "Щотижня",
|
|
315
|
+
"sch_periodWorkdays": "робочі дні",
|
|
316
|
+
"sch_periodYear": "рік",
|
|
317
|
+
"sch_periodYearly": "щорічно",
|
|
318
|
+
"sch_specificTime": "Конкретний час",
|
|
319
|
+
"sch_time": "час",
|
|
320
|
+
"sch_to": "до",
|
|
321
|
+
"sch_valid": "Дійсний",
|
|
322
|
+
"sch_validFrom": "від",
|
|
323
|
+
"sch_validTo": "до",
|
|
324
|
+
"sch_wholeDay": "Цілий день",
|
|
325
|
+
"sch_yearEveryMonth": "щомісяця"
|
|
326
|
+
}
|
package/i18n.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ declare class I18n {
|
|
|
23
23
|
nl?: Record<string, string>;
|
|
24
24
|
it?: Record<string, string>;
|
|
25
25
|
es?: Record<string, string>;
|
|
26
|
+
uk?: Record<string, string>;
|
|
26
27
|
"zh-cn"?: Record<string, string>;
|
|
27
28
|
};
|
|
28
29
|
/**
|
|
@@ -64,6 +65,7 @@ declare class I18n {
|
|
|
64
65
|
nl?: Record<string, string>;
|
|
65
66
|
it?: Record<string, string>;
|
|
66
67
|
es?: Record<string, string>;
|
|
68
|
+
uk?: Record<string, string>;
|
|
67
69
|
"zh-cn"?: Record<string, string>;
|
|
68
70
|
}): void;
|
|
69
71
|
/**
|
package/i18n.js
CHANGED
|
@@ -1,27 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports["default"] = void 0;
|
|
9
|
-
|
|
10
8
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
11
|
-
|
|
12
9
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
13
|
-
|
|
14
10
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
15
|
-
|
|
16
11
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
17
|
-
|
|
18
12
|
/***
|
|
19
13
|
* Copyright 2018-2022 bluefox <dogafox@gmail.com>
|
|
20
14
|
*
|
|
21
15
|
* MIT License
|
|
22
16
|
*
|
|
23
17
|
***/
|
|
24
|
-
|
|
25
18
|
/**
|
|
26
19
|
* Translation string management.
|
|
27
20
|
*/
|
|
@@ -29,7 +22,6 @@ var I18n = /*#__PURE__*/function () {
|
|
|
29
22
|
function I18n() {
|
|
30
23
|
(0, _classCallCheck2["default"])(this, I18n);
|
|
31
24
|
}
|
|
32
|
-
|
|
33
25
|
(0, _createClass2["default"])(I18n, null, [{
|
|
34
26
|
key: "setLanguage",
|
|
35
27
|
value:
|
|
@@ -57,6 +49,7 @@ var I18n = /*#__PURE__*/function () {
|
|
|
57
49
|
I18n.lang = lang;
|
|
58
50
|
}
|
|
59
51
|
}
|
|
52
|
+
|
|
60
53
|
/**
|
|
61
54
|
* Add translations
|
|
62
55
|
* User can provide two types of structures:
|
|
@@ -65,7 +58,6 @@ var I18n = /*#__PURE__*/function () {
|
|
|
65
58
|
* @param {object} words additional words for specific language
|
|
66
59
|
* @param {ioBroker.Languages} lang
|
|
67
60
|
*/
|
|
68
|
-
|
|
69
61
|
}, {
|
|
70
62
|
key: "extendTranslations",
|
|
71
63
|
value: function extendTranslations(words, lang) {
|
|
@@ -82,7 +74,6 @@ var I18n = /*#__PURE__*/function () {
|
|
|
82
74
|
if (!I18n.translations[lang]) {
|
|
83
75
|
console.warn("Used unknown language: ".concat(lang));
|
|
84
76
|
}
|
|
85
|
-
|
|
86
77
|
if (!I18n.translations[lang][word]) {
|
|
87
78
|
I18n.translations[lang][word] = words[word][lang];
|
|
88
79
|
} else if (I18n.translations[lang][word] !== words[word][lang]) {
|
|
@@ -95,7 +86,6 @@ var I18n = /*#__PURE__*/function () {
|
|
|
95
86
|
if (!I18n.translations[lang]) {
|
|
96
87
|
console.warn("Used unknown language: ".concat(lang));
|
|
97
88
|
}
|
|
98
|
-
|
|
99
89
|
I18n.translations[lang] = I18n.translations[lang] || {};
|
|
100
90
|
Object.keys(words).forEach(function (word) {
|
|
101
91
|
if (!I18n.translations[lang][word]) {
|
|
@@ -109,11 +99,11 @@ var I18n = /*#__PURE__*/function () {
|
|
|
109
99
|
console.error("Cannot apply translations: ".concat(e));
|
|
110
100
|
}
|
|
111
101
|
}
|
|
102
|
+
|
|
112
103
|
/**
|
|
113
104
|
* Sets all translations (in all languages).
|
|
114
105
|
* @param {{ [lang in ioBroker.Languages]?: Record<string, string>; }} translations
|
|
115
106
|
*/
|
|
116
|
-
|
|
117
107
|
}, {
|
|
118
108
|
key: "setTranslations",
|
|
119
109
|
value: function setTranslations(translations) {
|
|
@@ -121,66 +111,59 @@ var I18n = /*#__PURE__*/function () {
|
|
|
121
111
|
I18n.translations = translations;
|
|
122
112
|
}
|
|
123
113
|
}
|
|
114
|
+
|
|
124
115
|
/**
|
|
125
116
|
* Get the currently chosen language.
|
|
126
117
|
* @returns {ioBroker.Languages} The current language.
|
|
127
118
|
*/
|
|
128
|
-
|
|
129
119
|
}, {
|
|
130
120
|
key: "getLanguage",
|
|
131
121
|
value: function getLanguage() {
|
|
132
122
|
return I18n.lang;
|
|
133
123
|
}
|
|
124
|
+
|
|
134
125
|
/**
|
|
135
126
|
* Translate the given string to the selected language.
|
|
136
127
|
* @param {string} word The (key) word to look up the string.
|
|
137
128
|
* @param {string[]} args Optional arguments which will replace the first (second, third, ...) occurrences of %s
|
|
138
129
|
*/
|
|
139
|
-
|
|
140
130
|
}, {
|
|
141
131
|
key: "t",
|
|
142
132
|
value: function t(word) {
|
|
143
133
|
var translation = I18n.translations[I18n.lang];
|
|
144
|
-
|
|
145
134
|
if (translation) {
|
|
146
135
|
var w = translation[word];
|
|
147
|
-
|
|
148
136
|
if (w) {
|
|
149
137
|
word = w;
|
|
150
138
|
} else {
|
|
151
139
|
if (!I18n.unknownTranslations.includes(word)) {
|
|
152
140
|
I18n.unknownTranslations.push(word);
|
|
153
141
|
!I18n._disableWarning && console.log("Translate: ".concat(word));
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
|
|
142
|
+
}
|
|
143
|
+
// fallback to english
|
|
157
144
|
if (I18n.lang !== 'en' && I18n.translations.en) {
|
|
158
145
|
var wordEn = I18n.translations.en[word];
|
|
159
|
-
|
|
160
146
|
if (wordEn) {
|
|
161
147
|
word = wordEn;
|
|
162
148
|
}
|
|
163
149
|
}
|
|
164
150
|
}
|
|
165
151
|
}
|
|
166
|
-
|
|
167
152
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
168
153
|
args[_key - 1] = arguments[_key];
|
|
169
154
|
}
|
|
170
|
-
|
|
171
155
|
for (var _i = 0, _args = args; _i < _args.length; _i++) {
|
|
172
156
|
var arg = _args[_i];
|
|
173
157
|
word = word.replace('%s', arg);
|
|
174
158
|
}
|
|
175
|
-
|
|
176
159
|
return word;
|
|
177
160
|
}
|
|
161
|
+
|
|
178
162
|
/**
|
|
179
163
|
* Show non-translated words
|
|
180
164
|
* Required during development
|
|
181
165
|
* @param {string | RegExp} filter filter words
|
|
182
166
|
*/
|
|
183
|
-
|
|
184
167
|
}, {
|
|
185
168
|
key: "i18nShow",
|
|
186
169
|
value: function i18nShow(filter) {
|
|
@@ -189,7 +172,6 @@ var I18n = /*#__PURE__*/function () {
|
|
|
189
172
|
* @type {Record<string, string>}
|
|
190
173
|
*/
|
|
191
174
|
var result = {};
|
|
192
|
-
|
|
193
175
|
if (!filter) {
|
|
194
176
|
I18n.unknownTranslations.forEach(function (word) {
|
|
195
177
|
result[word] = word;
|
|
@@ -211,12 +193,12 @@ var I18n = /*#__PURE__*/function () {
|
|
|
211
193
|
console.log(JSON.stringify(result, null, 2));
|
|
212
194
|
}
|
|
213
195
|
}
|
|
196
|
+
|
|
214
197
|
/**
|
|
215
198
|
* Disable warning about non-translated words
|
|
216
199
|
* Required during development
|
|
217
200
|
* @param {boolean} disable Do the warning should be disabled
|
|
218
201
|
*/
|
|
219
|
-
|
|
220
202
|
}, {
|
|
221
203
|
key: "disableWarning",
|
|
222
204
|
value: function disableWarning(disable) {
|
|
@@ -225,14 +207,13 @@ var I18n = /*#__PURE__*/function () {
|
|
|
225
207
|
}]);
|
|
226
208
|
return I18n;
|
|
227
209
|
}(); // install global handlers
|
|
228
|
-
|
|
229
|
-
|
|
230
210
|
(0, _defineProperty2["default"])(I18n, "translations", {});
|
|
231
211
|
(0, _defineProperty2["default"])(I18n, "unknownTranslations", []);
|
|
232
212
|
(0, _defineProperty2["default"])(I18n, "lang", window.sysLang || 'en');
|
|
233
213
|
(0, _defineProperty2["default"])(I18n, "_disableWarning", false);
|
|
234
214
|
window.i18nShow = I18n.i18nShow;
|
|
235
215
|
window.i18nDisableWarning = I18n.disableWarning;
|
|
216
|
+
|
|
236
217
|
/*I18n.translations = {
|
|
237
218
|
'en': require('./i18n/en'),
|
|
238
219
|
'ru': require('./i18n/ru'),
|
|
@@ -240,7 +221,6 @@ window.i18nDisableWarning = I18n.disableWarning;
|
|
|
240
221
|
};
|
|
241
222
|
I18n.fallbacks = true;
|
|
242
223
|
I18n.t = function () {};*/
|
|
243
|
-
|
|
244
224
|
var _default = I18n;
|
|
245
225
|
exports["default"] = _default;
|
|
246
226
|
//# sourceMappingURL=i18n.js.map
|
package/i18n.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.js","names":["I18n","lang","words","en","de","ru","Object","keys","forEach","translations","assign","word","console","warn","e","error","translation","w","unknownTranslations","includes","push","_disableWarning","log","wordEn","args","arg","replace","filter","result","JSON","stringify","startsWith","test","disable","window","sysLang","i18nShow","i18nDisableWarning","disableWarning"],"sources":["i18n.js"],"sourcesContent":["/***\n * Copyright 2018-2022 bluefox <dogafox@gmail.com>\n *\n * MIT License\n *\n ***/\n\n /**\n * Translation string management.\n */\nclass I18n {\n /**\n * List of all languages with their translations.\n * @type {{ [lang in ioBroker.Languages]?: Record<string, string>; }}\n */\n static translations = {};\n\n /**\n * List of unknown translations during development.\n * @type {string[]}\n */\n static unknownTranslations = [];\n\n /**\n * The currently displayed language.\n * @type {ioBroker.Languages}\n */\n static lang = window.sysLang || 'en';\n\n static _disableWarning = false;\n\n /**\n * Set the language to display.\n * @param {ioBroker.Languages} lang\n */\n static setLanguage(lang) {\n if (lang) {\n I18n.lang = lang;\n }\n }\n\n /**\n * Add translations\n * User can provide two types of structures:\n * - {\"word1\": \"translated word1\", \"word2\": \"translated word2\"}, but in this case the lang must be provided\n * - {\"word1\": {\"en\": \"translated en word1\", \"de\": \"translated de word1\"}, \"word2\": {\"en\": \"translated en word2\", \"de\": \"translated de word2\"}}, but no lang must be provided\n * @param {object} words additional words for specific language\n * @param {ioBroker.Languages} lang\n */\n static extendTranslations(words, lang) {\n try {\n if (!lang) {\n if (words.en && words.de && words.ru) {\n Object.keys(words).forEach(lang => {\n I18n.translations[lang] = I18n.translations[lang] || {};\n Object.assign(I18n.translations[lang], words[lang]);\n });\n } else {\n Object.keys(words).forEach(word => {\n Object.keys(words[word]).forEach(lang => {\n if (!I18n.translations[lang]) {\n console.warn(`Used unknown language: ${lang}`);\n }\n if (!I18n.translations[lang][word]) {\n I18n.translations[lang][word] = words[word][lang];\n } else if (I18n.translations[lang][word] !== words[word][lang]) {\n console.warn(`Translation for word \"${word}\" in \"${lang}\" was ignored: existing = \"${I18n.translations[lang][word]}\", new = ${words[word][lang]}`);\n }\n });\n });\n }\n } else {\n if (!I18n.translations[lang]) {\n console.warn(`Used unknown language: ${lang}`);\n }\n I18n.translations[lang] = I18n.translations[lang] || {};\n Object.keys(words)\n .forEach(word => {\n if (!I18n.translations[lang][word]) {\n I18n.translations[lang][word] = words[word];\n } else if (I18n.translations[lang][word] !== words[word]) {\n console.warn(`Translation for word \"${word}\" in \"${lang}\" was ignored: existing = \"${I18n.translations[lang][word]}\", new = ${words[word]}`);\n }\n });\n }\n } catch (e) {\n console.error(`Cannot apply translations: ${e}`);\n }\n }\n\n /**\n * Sets all translations (in all languages).\n * @param {{ [lang in ioBroker.Languages]?: Record<string, string>; }} translations\n */\n static setTranslations(translations) {\n if (translations) {\n I18n.translations = translations;\n }\n }\n\n /**\n * Get the currently chosen language.\n * @returns {ioBroker.Languages} The current language.\n */\n static getLanguage() {\n return I18n.lang;\n }\n\n /**\n * Translate the given string to the selected language.\n * @param {string} word The (key) word to look up the string.\n * @param {string[]} args Optional arguments which will replace the first (second, third, ...) occurrences of %s\n */\n static t(word, ...args) {\n let translation = I18n.translations[I18n.lang];\n if (translation) {\n const w = translation[word];\n if (w) {\n word = w;\n } else {\n if (!I18n.unknownTranslations.includes(word)) {\n I18n.unknownTranslations.push(word);\n !I18n._disableWarning && console.log(`Translate: ${word}`);\n }\n // fallback to english\n if (I18n.lang !== 'en' && I18n.translations.en) {\n const wordEn = I18n.translations.en[word];\n if (wordEn) {\n word = wordEn;\n }\n }\n }\n }\n for (const arg of args) {\n word = word.replace('%s', arg);\n }\n return word;\n }\n\n /**\n * Show non-translated words\n * Required during development\n * @param {string | RegExp} filter filter words\n */\n static i18nShow(filter) {\n /**\n * List words with their translations.\n * @type {Record<string, string>}\n */\n const result = {};\n if (!filter) {\n I18n.unknownTranslations.forEach(word => {\n result[word] = word;\n });\n console.log(JSON.stringify(result, null, 2));\n } else if (typeof filter === 'string') {\n I18n.unknownTranslations.forEach(word => {\n if (word.startsWith(filter)) {\n result[word] = word.replace(filter, '');\n }\n });\n console.log(JSON.stringify(result, null, 2));\n } else if (typeof filter === 'object') {\n I18n.unknownTranslations.forEach(word => {\n if (filter.test(word)) {\n result[word] = word;\n }\n });\n console.log(JSON.stringify(result, null, 2));\n }\n }\n\n /**\n * Disable warning about non-translated words\n * Required during development\n * @param {boolean} disable Do the warning should be disabled\n */\n static disableWarning(disable) {\n I18n._disableWarning = !!disable;\n }\n}\n\n// install global handlers\nwindow.i18nShow = I18n.i18nShow;\nwindow.i18nDisableWarning = I18n.disableWarning;\n\n\n/*I18n.translations = {\n 'en': require('./i18n/en'),\n 'ru': require('./i18n/ru'),\n 'de': require('./i18n/de'),\n};\nI18n.fallbacks = true;\nI18n.t = function () {};*/\n\nexport default I18n;"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;;AAEC;AAC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AW4B,E;iCAX5BA,I,UAiBYkC,MAAM,CAACC,OAAP,IAAkB,I;iCAjB9BnC,I,qBAmBuB,K;AA0J7BkC,MAAM,CAACE,QAAP,GAAkBpC,IAAI,CAACoC,QAAvB;AACAF,MAAM,CAACG,kBAAP,GAA4BrC,IAAI,CAACsC,cAAjC;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;eAEetC,I"}
|
|
1
|
+
{"version":3,"file":"i18n.js","names":["I18n","lang","words","en","de","ru","Object","keys","forEach","translations","assign","word","console","warn","e","error","translation","w","unknownTranslations","includes","push","_disableWarning","log","wordEn","args","arg","replace","filter","result","JSON","stringify","startsWith","test","disable","window","sysLang","i18nShow","i18nDisableWarning","disableWarning"],"sources":["i18n.js"],"sourcesContent":["/***\n * Copyright 2018-2022 bluefox <dogafox@gmail.com>\n *\n * MIT License\n *\n ***/\n\n /**\n * Translation string management.\n */\nclass I18n {\n /**\n * List of all languages with their translations.\n * @type {{ [lang in ioBroker.Languages]?: Record<string, string>; }}\n */\n static translations = {};\n\n /**\n * List of unknown translations during development.\n * @type {string[]}\n */\n static unknownTranslations = [];\n\n /**\n * The currently displayed language.\n * @type {ioBroker.Languages}\n */\n static lang = window.sysLang || 'en';\n\n static _disableWarning = false;\n\n /**\n * Set the language to display.\n * @param {ioBroker.Languages} lang\n */\n static setLanguage(lang) {\n if (lang) {\n I18n.lang = lang;\n }\n }\n\n /**\n * Add translations\n * User can provide two types of structures:\n * - {\"word1\": \"translated word1\", \"word2\": \"translated word2\"}, but in this case the lang must be provided\n * - {\"word1\": {\"en\": \"translated en word1\", \"de\": \"translated de word1\"}, \"word2\": {\"en\": \"translated en word2\", \"de\": \"translated de word2\"}}, but no lang must be provided\n * @param {object} words additional words for specific language\n * @param {ioBroker.Languages} lang\n */\n static extendTranslations(words, lang) {\n try {\n if (!lang) {\n if (words.en && words.de && words.ru) {\n Object.keys(words).forEach(lang => {\n I18n.translations[lang] = I18n.translations[lang] || {};\n Object.assign(I18n.translations[lang], words[lang]);\n });\n } else {\n Object.keys(words).forEach(word => {\n Object.keys(words[word]).forEach(lang => {\n if (!I18n.translations[lang]) {\n console.warn(`Used unknown language: ${lang}`);\n }\n if (!I18n.translations[lang][word]) {\n I18n.translations[lang][word] = words[word][lang];\n } else if (I18n.translations[lang][word] !== words[word][lang]) {\n console.warn(`Translation for word \"${word}\" in \"${lang}\" was ignored: existing = \"${I18n.translations[lang][word]}\", new = ${words[word][lang]}`);\n }\n });\n });\n }\n } else {\n if (!I18n.translations[lang]) {\n console.warn(`Used unknown language: ${lang}`);\n }\n I18n.translations[lang] = I18n.translations[lang] || {};\n Object.keys(words)\n .forEach(word => {\n if (!I18n.translations[lang][word]) {\n I18n.translations[lang][word] = words[word];\n } else if (I18n.translations[lang][word] !== words[word]) {\n console.warn(`Translation for word \"${word}\" in \"${lang}\" was ignored: existing = \"${I18n.translations[lang][word]}\", new = ${words[word]}`);\n }\n });\n }\n } catch (e) {\n console.error(`Cannot apply translations: ${e}`);\n }\n }\n\n /**\n * Sets all translations (in all languages).\n * @param {{ [lang in ioBroker.Languages]?: Record<string, string>; }} translations\n */\n static setTranslations(translations) {\n if (translations) {\n I18n.translations = translations;\n }\n }\n\n /**\n * Get the currently chosen language.\n * @returns {ioBroker.Languages} The current language.\n */\n static getLanguage() {\n return I18n.lang;\n }\n\n /**\n * Translate the given string to the selected language.\n * @param {string} word The (key) word to look up the string.\n * @param {string[]} args Optional arguments which will replace the first (second, third, ...) occurrences of %s\n */\n static t(word, ...args) {\n let translation = I18n.translations[I18n.lang];\n if (translation) {\n const w = translation[word];\n if (w) {\n word = w;\n } else {\n if (!I18n.unknownTranslations.includes(word)) {\n I18n.unknownTranslations.push(word);\n !I18n._disableWarning && console.log(`Translate: ${word}`);\n }\n // fallback to english\n if (I18n.lang !== 'en' && I18n.translations.en) {\n const wordEn = I18n.translations.en[word];\n if (wordEn) {\n word = wordEn;\n }\n }\n }\n }\n for (const arg of args) {\n word = word.replace('%s', arg);\n }\n return word;\n }\n\n /**\n * Show non-translated words\n * Required during development\n * @param {string | RegExp} filter filter words\n */\n static i18nShow(filter) {\n /**\n * List words with their translations.\n * @type {Record<string, string>}\n */\n const result = {};\n if (!filter) {\n I18n.unknownTranslations.forEach(word => {\n result[word] = word;\n });\n console.log(JSON.stringify(result, null, 2));\n } else if (typeof filter === 'string') {\n I18n.unknownTranslations.forEach(word => {\n if (word.startsWith(filter)) {\n result[word] = word.replace(filter, '');\n }\n });\n console.log(JSON.stringify(result, null, 2));\n } else if (typeof filter === 'object') {\n I18n.unknownTranslations.forEach(word => {\n if (filter.test(word)) {\n result[word] = word;\n }\n });\n console.log(JSON.stringify(result, null, 2));\n }\n }\n\n /**\n * Disable warning about non-translated words\n * Required during development\n * @param {boolean} disable Do the warning should be disabled\n */\n static disableWarning(disable) {\n I18n._disableWarning = !!disable;\n }\n}\n\n// install global handlers\nwindow.i18nShow = I18n.i18nShow;\nwindow.i18nDisableWarning = I18n.disableWarning;\n\n\n/*I18n.translations = {\n 'en': require('./i18n/en'),\n 'ru': require('./i18n/ru'),\n 'de': require('./i18n/de'),\n};\nI18n.fallbacks = true;\nI18n.t = function () {};*/\n\nexport default I18n;"],"mappings":";;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AAEC;AACD;AACA;AAFC,IAGKA,IAAI;EAAA;IAAA;EAAA;EAAA;IAAA;IAAA;IACN;AACJ;AACA;AACA;;IAGK;AACL;AACA;AACA;;IAGI;AACJ;AACA;AACA;;IAKI;AACJ;AACA;AACA;IACI,qBAAmBC,IAAI,EAAE;MACrB,IAAIA,IAAI,EAAE;QACND,IAAI,CAACC,IAAI,GAAGA,IAAI;MACpB;IACJ;;IAEC;AACL;AACA;AACA;AACA;AACA;AACA;AACA;EAPK;IAAA;IAAA,OAQA,4BAA0BC,KAAK,EAAED,IAAI,EAAE;MACnC,IAAI;QACA,IAAI,CAACA,IAAI,EAAE;UACP,IAAIC,KAAK,CAACC,EAAE,IAAID,KAAK,CAACE,EAAE,IAA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ons/IconAdapter.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ declare function IconAdapter(props: any): JSX.Element;
|
|
|
3
3
|
declare namespace IconAdapter {
|
|
4
4
|
namespace propTypes {
|
|
5
5
|
const onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
6
|
-
const width: PropTypes.Requireable<string | number
|
|
7
|
-
const height: PropTypes.Requireable<string | number
|
|
6
|
+
const width: PropTypes.Requireable<NonNullable<string | number>>;
|
|
7
|
+
const height: PropTypes.Requireable<NonNullable<string | number>>;
|
|
8
8
|
const className: PropTypes.Requireable<string>;
|
|
9
9
|
}
|
|
10
10
|
}
|
package/icons/IconAdapter.js
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports["default"] = void 0;
|
|
9
|
-
|
|
10
8
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
-
|
|
14
10
|
// Icon copied from https://github.com/FortAwesome/Font-Awesome/blob/0d1f27efb836eb2ab994ba37221849ed64a73e5c/svgs/regular/
|
|
15
11
|
var IconAdapter = function IconAdapter(props) {
|
|
16
12
|
return /*#__PURE__*/_react["default"].createElement("svg", {
|
|
@@ -21,13 +17,13 @@ var IconAdapter = function IconAdapter(props) {
|
|
|
21
17
|
width: props.width || 20,
|
|
22
18
|
height: props.height || props.width || 20,
|
|
23
19
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24
|
-
className: props.className
|
|
20
|
+
className: props.className,
|
|
21
|
+
style: props.style
|
|
25
22
|
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
26
23
|
fill: "currentColor",
|
|
27
24
|
d: "M448 0L320 96v62.06l-83.03 83.03c6.79 4.25 13.27 9.06 19.07 14.87 5.8 5.8 10.62 12.28 14.87 19.07L353.94 192H416l96-128-64-64zM128 278.59L10.92 395.67c-14.55 14.55-14.55 38.15 0 52.71l52.7 52.7c14.56 14.56 38.15 14.56 52.71 0L233.41 384c29.11-29.11 29.11-76.3 0-105.41s-76.3-29.11-105.41 0z"
|
|
28
25
|
}));
|
|
29
26
|
};
|
|
30
|
-
|
|
31
27
|
IconAdapter.propTypes = {
|
|
32
28
|
onClick: _propTypes["default"].func,
|
|
33
29
|
width: _propTypes["default"].oneOfType([_propTypes["default"].number, _propTypes["default"].string]),
|