Skip to content

Commit

Permalink
Added hint to add new chip: #2870
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Jan 15, 2025
1 parent 5d52484 commit 1246894
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 3 deletions.
4 changes: 3 additions & 1 deletion packages/adapter-react-v5/src/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
"ra_Please select object ID...": "Bitte Objekt-ID auswählen...",
"ra_Port could be used by %s": "Port könnte von %s verwendet werden",
"ra_Port is already used by %s": "Port wird bereits von %s verwendet",
"ra_Press ENTER Key to add new item": "Die Eingabetaste drücken, um ein neues Element hinzuzufügen",
"ra_Private certificate": "Privates Zertifikat",
"ra_Product": "Produkt",
"ra_Public certificate": "Öffentliches Zertifikat",
Expand Down Expand Up @@ -309,6 +310,7 @@
"ra_tooltip_deleteObject": "Objekt löschen",
"ra_tooltip_editObject": "Objekt bearbeiten",
"ra_tooltip_editState": "Statuswert bearbeiten",
"ra_tooltip_expire": "Läuft ab in",
"ra_tooltip_from": "Von",
"ra_tooltip_lc": "Zuletzt geändert",
"ra_tooltip_quality": "Qualität",
Expand Down Expand Up @@ -447,4 +449,4 @@
"sch_validTo": "bis",
"sch_wholeDay": "Ganzer Tag",
"sch_yearEveryMonth": "jeden Monat"
}
}
5 changes: 3 additions & 2 deletions packages/adapter-react-v5/src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@
"ra_License %s": "License %s",
"ra_License agreement": "License agreement",
"ra_License does not exist": "License does not exist",
"ra_tooltip_expire": "Expires in",
"ra_License expired on %s": "License expired on %s",
"ra_License for other product \"%s\"": "License for other product \"%s\"",
"ra_License is for version %s, but required version is %s.": "License is for version %s, but required version is %s.",
Expand Down Expand Up @@ -151,6 +150,7 @@
"ra_Please select object ID...": "Please select object ID...",
"ra_Port could be used by %s": "Port could be used by %s",
"ra_Port is already used by %s": "Port is already used by %s",
"ra_Press ENTER Key to add new item": "Press ENTER Key to add new item",
"ra_Private certificate": "Private certificate",
"ra_Product": "Product",
"ra_Public certificate": "Public certificate",
Expand Down Expand Up @@ -310,6 +310,7 @@
"ra_tooltip_deleteObject": "Delete object",
"ra_tooltip_editObject": "Edit object",
"ra_tooltip_editState": "Edit the state value",
"ra_tooltip_expire": "Expires in",
"ra_tooltip_from": "From",
"ra_tooltip_lc": "Last changed",
"ra_tooltip_quality": "Quality",
Expand Down Expand Up @@ -448,4 +449,4 @@
"sch_validTo": "to",
"sch_wholeDay": "Whole day",
"sch_yearEveryMonth": "every month"
}
}
2 changes: 2 additions & 0 deletions packages/adapter-react-v5/src/i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
"ra_Please select object ID...": "Por favor seleccione ID de objeto ...",
"ra_Port could be used by %s": "El puerto podría ser utilizado por %s",
"ra_Port is already used by %s": "El puerto ya está en uso por %s",
"ra_Press ENTER Key to add new item": "Presione la tecla ENTER para agregar un nuevo elemento",
"ra_Private certificate": "certificado privado",
"ra_Product": "Producto",
"ra_Public certificate": "Certificado público",
Expand Down Expand Up @@ -309,6 +310,7 @@
"ra_tooltip_deleteObject": "Eliminar objeto",
"ra_tooltip_editObject": "Editar objeto",
"ra_tooltip_editState": "Edite el valor del estado",
"ra_tooltip_expire": "Caduca en",
"ra_tooltip_from": "Desde",
"ra_tooltip_lc": "Último cambio",
"ra_tooltip_quality": "Calidad",
Expand Down
2 changes: 2 additions & 0 deletions packages/adapter-react-v5/src/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
"ra_Please select object ID...": "Veuillez sélectionner l'ID d'objet ...",
"ra_Port could be used by %s": "Le port pourrait être utilisé par %s",
"ra_Port is already used by %s": "Le port est déjà utilisé par %s",
"ra_Press ENTER Key to add new item": "Appuyez sur la touche ENTRÉE pour ajouter un nouvel élément",
"ra_Private certificate": "Certificat privé",
"ra_Product": "Produit",
"ra_Public certificate": "Certificat public",
Expand Down Expand Up @@ -309,6 +310,7 @@
"ra_tooltip_deleteObject": "Supprimer un objet",
"ra_tooltip_editObject": "Modifier l'objet",
"ra_tooltip_editState": "Modifier la valeur d'état",
"ra_tooltip_expire": "Expire dans",
"ra_tooltip_from": "De",
"ra_tooltip_lc": "Dernière modification",
"ra_tooltip_quality": "Qualité",
Expand Down
2 changes: 2 additions & 0 deletions packages/adapter-react-v5/src/i18n/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
"ra_Please select object ID...": "Seleziona l'ID oggetto ...",
"ra_Port could be used by %s": "La porta potrebbe essere utilizzata da %s",
"ra_Port is already used by %s": "La porta è già utilizzata da %s",
"ra_Press ENTER Key to add new item": "Premere il tasto INVIO per aggiungere un nuovo elemento",
"ra_Private certificate": "Certificato privato",
"ra_Product": "Prodotto",
"ra_Public certificate": "Certificato pubblico",
Expand Down Expand Up @@ -309,6 +310,7 @@
"ra_tooltip_deleteObject": "Elimina oggetto",
"ra_tooltip_editObject": "Modifica oggetto",
"ra_tooltip_editState": "Modifica il valore dello stato",
"ra_tooltip_expire": "Scade tra",
"ra_tooltip_from": "A partire dal",
"ra_tooltip_lc": "Ultima modifica",
"ra_tooltip_quality": "Qualità",
Expand Down
2 changes: 2 additions & 0 deletions packages/adapter-react-v5/src/i18n/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
"ra_Please select object ID...": "Selecteer object-ID ...",
"ra_Port could be used by %s": "Poort kan worden gebruikt door %s",
"ra_Port is already used by %s": "Poort wordt al gebruikt door %s",
"ra_Press ENTER Key to add new item": "Druk op de ENTER-toets om een nieuw item toe te voegen",
"ra_Private certificate": "Privé certificaat",
"ra_Product": "Product",
"ra_Public certificate": "Openbaar certificaat",
Expand Down Expand Up @@ -309,6 +310,7 @@
"ra_tooltip_deleteObject": "Object verwijderen",
"ra_tooltip_editObject": "Object bewerken",
"ra_tooltip_editState": "Bewerk de statuswaarde",
"ra_tooltip_expire": "Verloopt over",
"ra_tooltip_from": "Van",
"ra_tooltip_lc": "Laatst gewijzigd",
"ra_tooltip_quality": "Kwaliteit",
Expand Down
2 changes: 2 additions & 0 deletions packages/adapter-react-v5/src/i18n/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
"ra_Please select object ID...": "Wybierz identyfikator obiektu ...",
"ra_Port could be used by %s": "Port może być używany przez %s",
"ra_Port is already used by %s": "Port jest już używany przez %s",
"ra_Press ENTER Key to add new item": "Naciśnij klawisz ENTER, aby dodać nowy element",
"ra_Private certificate": "Prywatny certyfikat",
"ra_Product": "Produkt",
"ra_Public certificate": "Certyfikat publiczny",
Expand Down Expand Up @@ -309,6 +310,7 @@
"ra_tooltip_deleteObject": "Usuń obiekt",
"ra_tooltip_editObject": "Edytuj obiekt",
"ra_tooltip_editState": "Edytuj wartość stanu",
"ra_tooltip_expire": "Wygasa za",
"ra_tooltip_from": "Z",
"ra_tooltip_lc": "Ostatnia zmiana",
"ra_tooltip_quality": "Jakość",
Expand Down
2 changes: 2 additions & 0 deletions packages/adapter-react-v5/src/i18n/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
"ra_Please select object ID...": "Selecione o ID do objeto ...",
"ra_Port could be used by %s": "A porta pode ser usada por %s",
"ra_Port is already used by %s": "A porta já está sendo usada por %s",
"ra_Press ENTER Key to add new item": "Pressione a tecla ENTER para adicionar um novo item",
"ra_Private certificate": "certificado privado",
"ra_Product": "produtos",
"ra_Public certificate": "certificado público",
Expand Down Expand Up @@ -309,6 +310,7 @@
"ra_tooltip_deleteObject": "Excluir objeto",
"ra_tooltip_editObject": "Editar objeto",
"ra_tooltip_editState": "Edite o valor do estado",
"ra_tooltip_expire": "Expira em",
"ra_tooltip_from": "De",
"ra_tooltip_lc": "Última alteração",
"ra_tooltip_quality": "Qualidade",
Expand Down
2 changes: 2 additions & 0 deletions packages/adapter-react-v5/src/i18n/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
"ra_Please select object ID...": "Пожалуйста, выберите идентификатор объекта ...",
"ra_Port could be used by %s": "Порт может использоваться %s",
"ra_Port is already used by %s": "Порт уже используется %s",
"ra_Press ENTER Key to add new item": "Нажмите клавишу ENTER, чтобы добавить новый элемент.",
"ra_Private certificate": "Частный сертификат",
"ra_Product": "Продукт",
"ra_Public certificate": "Публичный сертификат",
Expand Down Expand Up @@ -309,6 +310,7 @@
"ra_tooltip_deleteObject": "Удалить объект",
"ra_tooltip_editObject": "Редактировать объект",
"ra_tooltip_editState": "Изменить значение состояния",
"ra_tooltip_expire": "Истекает через",
"ra_tooltip_from": "От",
"ra_tooltip_lc": "Последнее изменение",
"ra_tooltip_quality": "Качество",
Expand Down
2 changes: 2 additions & 0 deletions packages/adapter-react-v5/src/i18n/uk.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
"ra_Please select object ID...": "Виберіть ідентифікатор об'єкта...",
"ra_Port could be used by %s": "Порт може використовуватися %s",
"ra_Port is already used by %s": "Порт уже використовується %s",
"ra_Press ENTER Key to add new item": "Натисніть клавішу ENTER, щоб додати новий елемент",
"ra_Private certificate": "Приватний сертифікат",
"ra_Product": "Продукт",
"ra_Public certificate": "Публічний сертифікат",
Expand Down Expand Up @@ -309,6 +310,7 @@
"ra_tooltip_deleteObject": "Видалити об'єкт",
"ra_tooltip_editObject": "Редагувати об'єкт",
"ra_tooltip_editState": "Відредагуйте значення стану",
"ra_tooltip_expire": "Термін дії закінчується через",
"ra_tooltip_from": "Від",
"ra_tooltip_lc": "Востаннє змінено",
"ra_tooltip_quality": "якість",
Expand Down
2 changes: 2 additions & 0 deletions packages/adapter-react-v5/src/i18n/zh-cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
"ra_Please select object ID...": "请选择对象ID ...",
"ra_Port could be used by %s": "%s 可以使用端口",
"ra_Port is already used by %s": "端口已被 %s 使用",
"ra_Press ENTER Key to add new item": "按 ENTER 键添加新项目",
"ra_Private certificate": "私有证书",
"ra_Product": "产品",
"ra_Public certificate": "公共证书",
Expand Down Expand Up @@ -309,6 +310,7 @@
"ra_tooltip_deleteObject": "删除物件",
"ra_tooltip_editObject": "编辑物件",
"ra_tooltip_editState": "编辑状态值",
"ra_tooltip_expire": "有效期:",
"ra_tooltip_from": "",
"ra_tooltip_lc": "最后改变了",
"ra_tooltip_quality": "质量",
Expand Down
2 changes: 2 additions & 0 deletions packages/jsonConfig/src/JsonConfigComponent/ConfigChip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { FormHelperText, FormControl } from '@mui/material';
import type { ConfigItemChip } from '#JC/types';
import ConfigGeneric, { type ConfigGenericProps, type ConfigGenericState } from './ConfigGeneric';
import ChipInput from './ChipInput';
import { I18n } from '@iobroker/adapter-react-v5';

interface ConfigChipProps extends ConfigGenericProps {
schema: ConfigItemChip;
Expand Down Expand Up @@ -71,6 +72,7 @@ class ConfigChip extends ConfigGeneric<ConfigChipProps, ConfigGenericState> {
});
}}
/>
<FormHelperText>{I18n.t('ra_Press ENTER Key to add new item')}</FormHelperText>
{this.props.schema.help ? (
<FormHelperText>
{this.renderHelp(
Expand Down

0 comments on commit 1246894

Please sign in to comment.