mirror of
https://github.com/formbricks/formbricks.git
synced 2026-02-15 10:08:41 -06:00
fix: translations and onboarding bug (#4370)
Co-authored-by: Piyush Gupta <piyushguptaa2z123@gmail.com>
This commit is contained in:
committed by
GitHub
parent
78813d53b1
commit
7bba09c16d
@@ -295,7 +295,7 @@ export function LogicEditorConditions({
|
||||
withInput={showInput}
|
||||
inputProps={{
|
||||
type: inputType,
|
||||
placeholder: "Value",
|
||||
placeholder: t("environments.surveys.edit.select_or_type_value"),
|
||||
}}
|
||||
key="conditionMatchValue"
|
||||
showSearch={false}
|
||||
|
||||
@@ -158,7 +158,7 @@ export const EditProfileAvatarForm = ({ session, environmentId, imageUrl }: Edit
|
||||
|
||||
{imageUrl && (
|
||||
<Button type="button" className="mr-2" variant="warn" size="sm" onClick={handleRemove}>
|
||||
{t("remove_image")}
|
||||
{t("environments.settings.profile.remove_image")}
|
||||
</Button>
|
||||
)}
|
||||
</div>
|
||||
|
||||
@@ -213,7 +213,7 @@
|
||||
"import": "Importieren",
|
||||
"impressions": "Eindrücke",
|
||||
"imprint": "Impressum",
|
||||
"in_progress": "In Bearbeitung",
|
||||
"in_progress": "Im Gange",
|
||||
"inactive_surveys": "Inaktive Umfragen",
|
||||
"input_type": "Eingabetyp",
|
||||
"insights": "Einblicke",
|
||||
@@ -296,7 +296,7 @@
|
||||
"please_select_at_least_one_trigger": "Bitte wähle mindestens einen Auslöser aus",
|
||||
"please_upgrade_your_plan": "Bitte upgrade deinen Plan.",
|
||||
"preview": "Vorschau",
|
||||
"preview_survey": "Vorschau Umfrage",
|
||||
"preview_survey": "Umfragevorschau",
|
||||
"privacy": "Datenschutz",
|
||||
"privacy_policy": "Datenschutzerklärung",
|
||||
"product": "Produkt",
|
||||
@@ -1546,6 +1546,7 @@
|
||||
"seconds_after_trigger_the_survey_will_be_closed_if_no_response": "Sekunden nach dem Auslösen wird die Umfrage geschlossen, wenn keine Antwort erfolgt.",
|
||||
"seconds_before_showing_the_survey": "Sekunden, bevor die Umfrage angezeigt wird.",
|
||||
"segment_saved_successfully": "Segment erfolgreich gespeichert",
|
||||
"select_or_type_value": "Auswählen oder Wert eingeben",
|
||||
"select_ordering": "Anordnung auswählen",
|
||||
"select_saved_action": "Gespeicherte Aktion auswählen",
|
||||
"select_type": "Typ auswählen",
|
||||
@@ -1912,7 +1913,7 @@
|
||||
"verify_email": "E-Mail bestätigen.",
|
||||
"verify_email_before_submission": "Bestätige deine E-Mail, um zu antworten",
|
||||
"verify_email_before_submission_button": "Überprüfen",
|
||||
"verify_email_before_submission_description": "Nur Benutzer, die die PIN haben, können auf die Umfrage zugreifen.",
|
||||
"verify_email_before_submission_description": "Um an dieser Umfrage teilzunehmen, bitte bestätige deine E-Mail",
|
||||
"want_to_respond": "Möchtest Du antworten?"
|
||||
},
|
||||
"setup": {
|
||||
|
||||
@@ -1546,6 +1546,7 @@
|
||||
"seconds_after_trigger_the_survey_will_be_closed_if_no_response": "seconds after trigger the survey will be closed if no response",
|
||||
"seconds_before_showing_the_survey": "seconds before showing the survey.",
|
||||
"segment_saved_successfully": "Segment saved successfully",
|
||||
"select_or_type_value": "Select or type value",
|
||||
"select_ordering": "Select ordering",
|
||||
"select_saved_action": "Select saved action",
|
||||
"select_type": "Select type",
|
||||
@@ -1912,7 +1913,7 @@
|
||||
"verify_email": "Verify email.",
|
||||
"verify_email_before_submission": "Verify your email to respond",
|
||||
"verify_email_before_submission_button": "Verify",
|
||||
"verify_email_before_submission_description": "Only users who have the PIN can access the survey.",
|
||||
"verify_email_before_submission_description": "To respond to this survey, please verify your email",
|
||||
"want_to_respond": "Want to respond?"
|
||||
},
|
||||
"setup": {
|
||||
|
||||
@@ -1546,6 +1546,7 @@
|
||||
"seconds_after_trigger_the_survey_will_be_closed_if_no_response": "segundos após acionar, a pesquisa será encerrada se não houver resposta",
|
||||
"seconds_before_showing_the_survey": "segundos antes de mostrar a pesquisa.",
|
||||
"segment_saved_successfully": "Segmento salvo com sucesso",
|
||||
"select_or_type_value": "Selecionar ou digitar valor",
|
||||
"select_ordering": "Selecionar pedido",
|
||||
"select_saved_action": "Selecionar ação salva",
|
||||
"select_type": "Selecionar tipo",
|
||||
@@ -1912,7 +1913,7 @@
|
||||
"verify_email": "Verifica o e-mail.",
|
||||
"verify_email_before_submission": "Verifique seu e-mail para responder",
|
||||
"verify_email_before_submission_button": "Verificar",
|
||||
"verify_email_before_submission_description": "Somente usuários que têm o PIN podem acessar a pesquisa.",
|
||||
"verify_email_before_submission_description": "Para responder a esta pesquisa, confirme seu e-mail",
|
||||
"want_to_respond": "Quer responder?"
|
||||
},
|
||||
"setup": {
|
||||
|
||||
@@ -5,7 +5,7 @@ import { z } from "zod";
|
||||
import { prisma } from "@formbricks/database";
|
||||
import { ZOptionalNumber, ZString } from "@formbricks/types/common";
|
||||
import { ZId } from "@formbricks/types/common";
|
||||
import { DatabaseError, ValidationError } from "@formbricks/types/errors";
|
||||
import { DatabaseError, InvalidInputError, ValidationError } from "@formbricks/types/errors";
|
||||
import type { TProduct, TProductUpdateInput } from "@formbricks/types/product";
|
||||
import { ZProduct, ZProductUpdateInput } from "@formbricks/types/product";
|
||||
import { cache } from "../cache";
|
||||
@@ -361,7 +361,12 @@ export const createProduct = async (
|
||||
|
||||
return updatedProduct;
|
||||
} catch (error) {
|
||||
if (error instanceof Prisma.PrismaClientKnownRequestError && error.code === "P2002") {
|
||||
throw new InvalidInputError("A product with this name already exists in your organization");
|
||||
}
|
||||
|
||||
if (error instanceof Prisma.PrismaClientKnownRequestError) {
|
||||
console.error(error.message);
|
||||
throw new DatabaseError(error.message);
|
||||
}
|
||||
throw error;
|
||||
|
||||
Reference in New Issue
Block a user