Browse Source

add missing translation for comment placeholder
shade category select on isFocused

Ramona Plogmann 4 years ago
parent
commit
3d9163a1fa

+ 1 - 1
client/src/components/Meals/EditMealCore.jsx

@@ -31,7 +31,7 @@ const EditMealCore = (props) => {
     setImagesLoading,
   } = props;
 
-  const [placeholder, setPlaceholder] = useState(t('Rezept, Anweisungen, Kommentare, etc.'));
+  const [placeholder, setPlaceholder] = useState(t('Recipe, instructions, comments, etc.'));
   const [, updateState] = useState();
   const forceUpdate = React.useCallback(() => updateState({}), []);
 

+ 2 - 2
client/src/components/Meals/SelectMealCategory.jsx

@@ -72,9 +72,9 @@ const SelectMealCategory = (props) => {
 
   const SelectOption = props => {
     const { data: { name, icon }, innerProps } = props;
-
+    console.log(props);
     return (
-      <ListItem button {...innerProps} >
+      <ListItem button {...innerProps} selected={props.isFocused} >
         <ListItemIcon className={classes.listItemIcon}>
           {icon ? <FontAwesomeIcon icon={icon} /> : null}
         </ListItemIcon>

+ 1 - 0
client/src/translations/_example.translation.json

@@ -93,6 +93,7 @@
   "Import Meal": "",
   "Successfully imported meal": "",
   "You can use this field to add a recipe in text form, instructions, experience or other comments.": "",
+  "Recipe, instructions, comments, etc.": "",
   "Delete Account": "",
   "Are you sure you want to delete your Emealay Account?": "",
   "This cannot be undone.": "",

+ 1 - 0
client/src/translations/de.translation.json

@@ -95,6 +95,7 @@
   "Import Meal": "Gericht importieren",
   "Successfully imported meal": "Gericht erfolgreich importiert",
   "You can use this field to add a recipe in text form, instructions, experience or other comments.": "Sie können dieses Feld nutzen, um ein Rezept in Textform, Anweisungen, Erfahrungswerte oder andere Kommentare hinzuzufügen.",
+  "Recipe, instructions, comments, etc.": "Rezept, Anweisungen, Kommentare, etc.",
   "Delete Account": "Account löschen",
   "Are you sure you want to delete your Emealay Account?": "Bist du sicher, dass du deinen Emealay Account dauerhaft löschen möchtest?",
   "This cannot be undone.": "Das Löschen kann nicht rückgängig gemacht werden",

+ 1 - 0
client/src/translations/en-GB.translation.json

@@ -94,6 +94,7 @@
   "Import Meal": "Import Meal",
   "Successfully imported meal": "Successfully imported meal",
   "You can use this field to add a recipe in text form, instructions, experience or other comments.": "You can use this field to add a recipe in text form, instructions, experience or other comments.",
+  "Recipe, instructions, comments, etc.": "Recipe, instructions, comments, etc.",
   "Delete Account": "Delete Account",
   "Are you sure you want to delete your Emealay Account?": "Are you sure you want to delete your Emealay Account?",
   "This cannot be undone.": "This cannot be undone.",

+ 1 - 0
client/src/translations/en-US.translation.json

@@ -94,6 +94,7 @@
   "Import Meal": "Import Meal",
   "Successfully imported meal": "Successfully imported meal",
   "You can use this field to add a recipe in text form, instructions, experience or other comments.": "You can use this field to add a recipe in text form, instructions, experience or other comments.",
+  "Recipe, instructions, comments, etc.": "Recipe, instructions, comments, etc.",
   "Delete Account": "Delete Account",
   "Are you sure you want to delete your Emealay Account?": "Are you sure you want to delete your Emealay Account?",
   "This cannot be undone.": "This cannot be undone.",

+ 1 - 0
client/src/translations/es.translation.json

@@ -94,6 +94,7 @@
   "Import Meal": "Importar Comida",
   "Successfully imported meal": "Comida importada con éxito",
   "You can use this field to add a recipe in text form, instructions, experience or other comments.": "Puede utilizar este campo para añadir una receta en forma de texto, instrucciones, experiencia u otros comentarios.",
+  "Recipe, instructions, comments, etc.": "Receta, instrucciones, comentarios, etc.",
   "Delete Account": "Eliminar la cuenta",
   "Are you sure you want to delete your Emealay Account?": "¿Seguro que quieres eliminar tu cuenta de Emealay?",
   "This cannot be undone.": "Esto no se puede deshacer.",

+ 1 - 0
client/src/translations/fr-FR.translation.json

@@ -94,6 +94,7 @@
   "Import Meal": "Importer un repas",
   "Successfully imported meal": "Importation réussie du repas",
   "You can use this field to add a recipe in text form, instructions, experience or other comments.": "Vous pouvez utiliser ce champ pour ajouter une recette sous forme de texte, des instructions, des expériences ou d'autres commentaires.",
+  "Recipe, instructions, comments, etc.": "Recette, instructions, commentaires, etc.",
   "Delete Account": "Supprimer le compte",
   "Are you sure you want to delete your Emealay Account?": "Êtes-vous sûr de vouloir supprimer votre compte de Emealay ?",
   "This cannot be undone.": "Cette opération ne peut être annulée.",

+ 1 - 0
client/src/translations/it.translation.json

@@ -94,6 +94,7 @@
   "Import Meal": "Importare pasto",
   "Successfully imported meal": "Pasto importato con successo",
   "You can use this field to add a recipe in text form, instructions, experience or other comments.": "Puoi usare questo campo per aggiungere una ricetta in forma di testo, istruzioni, esperienze o altri commenti.",
+  "Recipe, instructions, comments, etc.": "Ricetta, istruzioni, commenti, ecc.",
   "Delete Account": "Cancellare il conto",
   "Are you sure you want to delete your Emealay Account?": "Sei sicuro di voler cancellare il tuo conto di Emealay?",
   "This cannot be undone.": "Questo non può essere annullato.",