feat(streckkod): Klar-knapp for att bekrafta + ga tillbaka ur skannern
Efter lyckad lasning/produktbidrag fanns bara 'Skanna igen'. Nu finns en tydlig knapp som bekraftar och gar tillbaka dit man kom ifran (router.back): 'Stammer - klar' nar man just bidragit med foto, annars 'Klar'. 'Skanna igen' finns kvar som sekundar, och 'Fota baksidan' visas nar info saknas. Nya i18n-nycklar barcode.done + barcode.looksRight x 12 sprak. Verifierat: mobil-typecheck gront.
This commit is contained in:
@@ -325,15 +325,19 @@ export default function BarcodeScreen() {
|
||||
</Small>
|
||||
</ScrollView>
|
||||
<View style={styles.panelFooter}>
|
||||
{incomplete ? (
|
||||
{incomplete && (
|
||||
<>
|
||||
<Button label={t("barcode.complete")} onPress={() => void contributePhoto()} />
|
||||
<Spacer size={spacing.xs} />
|
||||
<Button label={t("barcode.info.scanAgain")} variant="ghost" onPress={scanAgain} />
|
||||
</>
|
||||
) : (
|
||||
<Button label={t("barcode.info.scanAgain")} onPress={scanAgain} />
|
||||
)}
|
||||
{/* Bekräfta + ta sig ut ur skannern (tillbaka dit man kom ifrån). */}
|
||||
<Button
|
||||
label={justContributed ? t("barcode.looksRight") : t("barcode.done")}
|
||||
onPress={() => router.back()}
|
||||
/>
|
||||
<Spacer size={spacing.xs} />
|
||||
<Button label={t("barcode.info.scanAgain")} variant="ghost" onPress={scanAgain} />
|
||||
</View>
|
||||
</View>
|
||||
)}
|
||||
|
||||
@@ -39,6 +39,8 @@
|
||||
"barcode.contributing.skipBack": "Færdig, analysér",
|
||||
"barcode.contributing.shootBack": "Tag billede af bagsiden",
|
||||
"barcode.complete": "Tag billede af bagsiden (næring & indhold)",
|
||||
"barcode.done": "Færdig",
|
||||
"barcode.looksRight": "Det stemmer – færdig",
|
||||
"barcode.kcalPer100": "{kcal} kcal/100 g",
|
||||
"barcode.needHousehold": "Du skal først have en husstand.",
|
||||
"barcode.noLocation": "Ingen opbevaringssteder fundet.",
|
||||
|
||||
@@ -39,6 +39,8 @@
|
||||
"barcode.contributing.skipBack": "Fertig, analysieren",
|
||||
"barcode.contributing.shootBack": "Rückseite fotografieren",
|
||||
"barcode.complete": "Rückseite fotografieren (Nährwerte & Zutaten)",
|
||||
"barcode.done": "Fertig",
|
||||
"barcode.looksRight": "Stimmt – fertig",
|
||||
"barcode.kcalPer100": "{kcal} kcal/100 g",
|
||||
"barcode.needHousehold": "Du brauchst zuerst einen Haushalt.",
|
||||
"barcode.noLocation": "Kein Lagerort gefunden.",
|
||||
|
||||
@@ -39,6 +39,8 @@
|
||||
"barcode.contributing.skipBack": "Done, analyse",
|
||||
"barcode.contributing.shootBack": "Photograph the back",
|
||||
"barcode.complete": "Photograph the back (nutrition & ingredients)",
|
||||
"barcode.done": "Done",
|
||||
"barcode.looksRight": "Looks right – done",
|
||||
"barcode.kcalPer100": "{kcal} kcal/100 g",
|
||||
"barcode.needHousehold": "You need a household first.",
|
||||
"barcode.noLocation": "No storage location found.",
|
||||
|
||||
@@ -39,6 +39,8 @@
|
||||
"barcode.contributing.skipBack": "Listo, analizar",
|
||||
"barcode.contributing.shootBack": "Fotografiar la parte de atrás",
|
||||
"barcode.complete": "Fotografiar la parte de atrás (nutrición e ingredientes)",
|
||||
"barcode.done": "Listo",
|
||||
"barcode.looksRight": "Correcto – listo",
|
||||
"barcode.kcalPer100": "{kcal} kcal/100 g",
|
||||
"barcode.needHousehold": "Primero necesitas un hogar.",
|
||||
"barcode.noLocation": "No se encontró ningún lugar de almacenamiento.",
|
||||
|
||||
@@ -39,6 +39,8 @@
|
||||
"barcode.contributing.skipBack": "Valmis, analysoi",
|
||||
"barcode.contributing.shootBack": "Kuvaa takapuoli",
|
||||
"barcode.complete": "Kuvaa takapuoli (ravinto & ainesosat)",
|
||||
"barcode.done": "Valmis",
|
||||
"barcode.looksRight": "Täsmää – valmis",
|
||||
"barcode.kcalPer100": "{kcal} kcal/100 g",
|
||||
"barcode.needHousehold": "Tarvitset ensin kotitalouden.",
|
||||
"barcode.noLocation": "Säilytyspaikkaa ei löytynyt.",
|
||||
|
||||
@@ -39,6 +39,8 @@
|
||||
"barcode.contributing.skipBack": "Terminé, analyser",
|
||||
"barcode.contributing.shootBack": "Photographier l'arrière",
|
||||
"barcode.complete": "Photographier l'arrière (nutrition et ingrédients)",
|
||||
"barcode.done": "Terminé",
|
||||
"barcode.looksRight": "C'est correct – terminé",
|
||||
"barcode.kcalPer100": "{kcal} kcal/100 g",
|
||||
"barcode.needHousehold": "Il vous faut d'abord un foyer.",
|
||||
"barcode.noLocation": "Aucun lieu de stockage trouvé.",
|
||||
|
||||
@@ -39,6 +39,8 @@
|
||||
"barcode.contributing.skipBack": "Fatto, analizza",
|
||||
"barcode.contributing.shootBack": "Fotografa il retro",
|
||||
"barcode.complete": "Fotografa il retro (valori e ingredienti)",
|
||||
"barcode.done": "Fatto",
|
||||
"barcode.looksRight": "Corretto – fatto",
|
||||
"barcode.kcalPer100": "{kcal} kcal/100 g",
|
||||
"barcode.needHousehold": "Prima ti serve una famiglia.",
|
||||
"barcode.noLocation": "Nessun luogo di conservazione trovato.",
|
||||
|
||||
@@ -39,6 +39,8 @@
|
||||
"barcode.contributing.skipBack": "Ferdig, analyser",
|
||||
"barcode.contributing.shootBack": "Ta bilde av baksiden",
|
||||
"barcode.complete": "Ta bilde av baksiden (næring og innhold)",
|
||||
"barcode.done": "Ferdig",
|
||||
"barcode.looksRight": "Stemmer – ferdig",
|
||||
"barcode.kcalPer100": "{kcal} kcal/100 g",
|
||||
"barcode.needHousehold": "Du trenger en husstand først.",
|
||||
"barcode.noLocation": "Fant ingen oppbevaringssteder.",
|
||||
|
||||
@@ -39,6 +39,8 @@
|
||||
"barcode.contributing.skipBack": "Klaar, analyseren",
|
||||
"barcode.contributing.shootBack": "Achterkant fotograferen",
|
||||
"barcode.complete": "Achterkant fotograferen (voeding & ingrediënten)",
|
||||
"barcode.done": "Klaar",
|
||||
"barcode.looksRight": "Klopt – klaar",
|
||||
"barcode.kcalPer100": "{kcal} kcal/100 g",
|
||||
"barcode.needHousehold": "Je hebt eerst een huishouden nodig.",
|
||||
"barcode.noLocation": "Geen bewaarplek gevonden.",
|
||||
|
||||
@@ -39,6 +39,8 @@
|
||||
"barcode.contributing.skipBack": "Gotowe, analizuj",
|
||||
"barcode.contributing.shootBack": "Sfotografuj tył",
|
||||
"barcode.complete": "Sfotografuj tył (wartości i składniki)",
|
||||
"barcode.done": "Gotowe",
|
||||
"barcode.looksRight": "Zgadza się – gotowe",
|
||||
"barcode.kcalPer100": "{kcal} kcal/100 g",
|
||||
"barcode.needHousehold": "Najpierw potrzebujesz gospodarstwa.",
|
||||
"barcode.noLocation": "Nie znaleziono miejsca przechowywania.",
|
||||
|
||||
@@ -39,6 +39,8 @@
|
||||
"barcode.contributing.skipBack": "Pronto, analisar",
|
||||
"barcode.contributing.shootBack": "Fotografar a parte de trás",
|
||||
"barcode.complete": "Fotografar a parte de trás (nutrição e ingredientes)",
|
||||
"barcode.done": "Concluído",
|
||||
"barcode.looksRight": "Está correto – concluído",
|
||||
"barcode.kcalPer100": "{kcal} kcal/100 g",
|
||||
"barcode.needHousehold": "Primeiro precisa de um agregado.",
|
||||
"barcode.noLocation": "Nenhum local de armazenamento encontrado.",
|
||||
|
||||
@@ -39,6 +39,8 @@
|
||||
"barcode.contributing.skipBack": "Klar, analysera",
|
||||
"barcode.contributing.shootBack": "Fota baksidan",
|
||||
"barcode.complete": "Fota baksidan (näring & innehåll)",
|
||||
"barcode.done": "Klar",
|
||||
"barcode.looksRight": "Stämmer – klar",
|
||||
"barcode.kcalPer100": "{kcal} kcal/100 g",
|
||||
"barcode.needHousehold": "Du behöver ett hushåll först.",
|
||||
"barcode.noLocation": "Ingen förvaringsplats hittades.",
|
||||
|
||||
Reference in New Issue
Block a user