From ac5d1e651e72fac1c1efe2eef93f4ad5b957b0af Mon Sep 17 00:00:00 2001 From: Dhruwang Jariwala <67850763+Dhruwang@users.noreply.github.com> Date: Mon, 8 Sep 2025 15:57:31 +0530 Subject: [PATCH] fix: untranslated string (#6512) --- apps/web/app/error.tsx | 4 ++-- apps/web/locales/de-DE.json | 8 +++++--- apps/web/locales/en-US.json | 8 +++++--- apps/web/locales/fr-FR.json | 6 ++++-- apps/web/locales/ja-JP.json | 6 ++++-- apps/web/locales/pt-BR.json | 6 ++++-- apps/web/locales/pt-PT.json | 6 ++++-- apps/web/locales/ro-RO.json | 8 +++++--- apps/web/locales/zh-Hant-TW.json | 6 ++++-- 9 files changed, 37 insertions(+), 21 deletions(-) diff --git a/apps/web/app/error.tsx b/apps/web/app/error.tsx index 3cd85fc24a..62711994f0 100644 --- a/apps/web/app/error.tsx +++ b/apps/web/app/error.tsx @@ -4,14 +4,14 @@ import { Button } from "@/modules/ui/components/button"; import { ErrorComponent } from "@/modules/ui/components/error-component"; import * as Sentry from "@sentry/nextjs"; -import { useTranslate } from "@tolgee/react"; +import { TFnType, useTranslate } from "@tolgee/react"; import { type ClientErrorType, getClientErrorData } from "@formbricks/types/errors"; /** * Get translated error messages based on error type * All translation keys are directly visible to Tolgee's static analysis */ -const getErrorMessages = (type: ClientErrorType, t: (key: string) => string) => { +const getErrorMessages = (type: ClientErrorType, t: TFnType) => { if (type === "rate_limit") { return { title: t("common.error_rate_limit_title"), diff --git a/apps/web/locales/de-DE.json b/apps/web/locales/de-DE.json index e14ebd4225..0c2ef49c06 100644 --- a/apps/web/locales/de-DE.json +++ b/apps/web/locales/de-DE.json @@ -201,6 +201,10 @@ "environment_not_found": "Umgebung nicht gefunden", "environment_notice": "Du befindest dich derzeit in der {environment}-Umgebung.", "error": "Fehler", + "error_component_description": "Diese Ressource existiert nicht oder Du hast nicht die notwendigen Rechte, um darauf zuzugreifen.", + "error_component_title": "Fehler beim Laden der Ressourcen", + "error_rate_limit_description": "Maximale Anzahl an Anfragen erreicht. Bitte später erneut versuchen.", + "error_rate_limit_title": "Rate Limit Überschritten", "expand_rows": "Zeilen erweitern", "finish": "Fertigstellen", "follow_these": "Folge diesen", @@ -306,7 +310,7 @@ "product_manager": "Produktmanager", "profile": "Profil", "profile_id": "Profil-ID", - "project_configuration": "Projektkonfiguration", + "project_configuration": "Projekteinstellungen", "project_creation_description": "Organisieren Sie Umfragen in Projekten für eine bessere Zugriffskontrolle.", "project_id": "Projekt-ID", "project_name": "Projektname", @@ -576,8 +580,6 @@ "contacts_table_refresh": "Kontakte aktualisieren", "contacts_table_refresh_success": "Kontakte erfolgreich aktualisiert", "delete_contact_confirmation": "Dies wird alle Umfrageantworten und Kontaktattribute löschen, die mit diesem Kontakt verbunden sind. Jegliche zielgerichtete Kommunikation und Personalisierung basierend auf den Daten dieses Kontakts gehen verloren.", - "first_name": "Vorname", - "last_name": "Nachname", "no_responses_found": "Keine Antworten gefunden", "not_provided": "Nicht angegeben", "search_contact": "Kontakt suchen", diff --git a/apps/web/locales/en-US.json b/apps/web/locales/en-US.json index 740e5d30cc..5777e11ae4 100644 --- a/apps/web/locales/en-US.json +++ b/apps/web/locales/en-US.json @@ -201,6 +201,10 @@ "environment_not_found": "Environment not found", "environment_notice": "You're currently in the {environment} environment.", "error": "Error", + "error_component_description": "This resource doesn't exist or you don't have the necessary rights to access it.", + "error_component_title": "Error loading resources", + "error_rate_limit_description": "Maximum number of requests reached. Please try again later.", + "error_rate_limit_title": "Rate Limit Exceeded", "expand_rows": "Expand rows", "finish": "Finish", "follow_these": "Follow these", @@ -306,7 +310,7 @@ "product_manager": "Product Manager", "profile": "Profile", "profile_id": "Profile ID", - "project_configuration": "Project's Configuration", + "project_configuration": "Project Configuration", "project_creation_description": "Organize surveys in projects for better access control.", "project_id": "Project ID", "project_name": "Project Name", @@ -576,8 +580,6 @@ "contacts_table_refresh": "Refresh contacts", "contacts_table_refresh_success": "Contacts refreshed successfully", "delete_contact_confirmation": "This will delete all survey responses and contact attributes associated with this contact. Any targeting and personalization based on this contact's data will be lost.", - "first_name": "First Name", - "last_name": "Last Name", "no_responses_found": "No responses found", "not_provided": "Not provided", "search_contact": "Search contact", diff --git a/apps/web/locales/fr-FR.json b/apps/web/locales/fr-FR.json index c26c7037e2..f5ad66f3b3 100644 --- a/apps/web/locales/fr-FR.json +++ b/apps/web/locales/fr-FR.json @@ -201,6 +201,10 @@ "environment_not_found": "Environnement non trouvé", "environment_notice": "Vous êtes actuellement dans l'environnement {environment}.", "error": "Erreur", + "error_component_description": "Cette ressource n'existe pas ou vous n'avez pas les droits nécessaires pour y accéder.", + "error_component_title": "Erreur de chargement des ressources", + "error_rate_limit_description": "Nombre maximal de demandes atteint. Veuillez réessayer plus tard.", + "error_rate_limit_title": "Limite de Taux Dépassée", "expand_rows": "Développer les lignes", "finish": "Terminer", "follow_these": "Suivez ceci", @@ -576,8 +580,6 @@ "contacts_table_refresh": "Rafraîchir les contacts", "contacts_table_refresh_success": "Contacts rafraîchis avec succès", "delete_contact_confirmation": "Cela supprimera toutes les réponses aux enquêtes et les attributs de contact associés à ce contact. Toute la personnalisation et le ciblage basés sur les données de ce contact seront perdus.", - "first_name": "Prénom", - "last_name": "Nom de famille", "no_responses_found": "Aucune réponse trouvée", "not_provided": "Non fourni", "search_contact": "Rechercher un contact", diff --git a/apps/web/locales/ja-JP.json b/apps/web/locales/ja-JP.json index 9332ef9e05..5a4d30fafb 100644 --- a/apps/web/locales/ja-JP.json +++ b/apps/web/locales/ja-JP.json @@ -201,6 +201,10 @@ "environment_not_found": "環境が見つかりません", "environment_notice": "現在、{environment} 環境にいます。", "error": "エラー", + "error_component_description": "この リソース は 存在 しない か、アクセス する ための 必要な 権限 が ありません。", + "error_component_title": "リソース の 読み込み エラー", + "error_rate_limit_description": "リクエストの最大数に達しました。後でもう一度試してください。", + "error_rate_limit_title": "レート制限を超えました", "expand_rows": "行を展開", "finish": "完了", "follow_these": "こちらの手順に従って", @@ -576,8 +580,6 @@ "contacts_table_refresh": "連絡先を更新", "contacts_table_refresh_success": "連絡先を正常に更新しました", "delete_contact_confirmation": "これにより、この連絡先に関連付けられているすべてのフォーム回答と連絡先属性が削除されます。この連絡先のデータに基づいたターゲティングとパーソナライゼーションはすべて失われます。", - "first_name": "名", - "last_name": "姓", "no_responses_found": "回答が見つかりません", "not_provided": "提供されていません", "search_contact": "連絡先を検索", diff --git a/apps/web/locales/pt-BR.json b/apps/web/locales/pt-BR.json index 1103460944..913b89a209 100644 --- a/apps/web/locales/pt-BR.json +++ b/apps/web/locales/pt-BR.json @@ -201,6 +201,10 @@ "environment_not_found": "Ambiente não encontrado", "environment_notice": "Você está atualmente no ambiente {environment}.", "error": "Erro", + "error_component_description": "Esse recurso não existe ou você não tem permissão para acessá-lo.", + "error_component_title": "Erro ao carregar recursos", + "error_rate_limit_description": "Número máximo de requisições atingido. Por favor, tente novamente mais tarde.", + "error_rate_limit_title": "Limite de Taxa Excedido", "expand_rows": "Expandir linhas", "finish": "Terminar", "follow_these": "Siga esses", @@ -576,8 +580,6 @@ "contacts_table_refresh": "Atualizar contatos", "contacts_table_refresh_success": "Contatos atualizados com sucesso", "delete_contact_confirmation": "Isso irá apagar todas as respostas da pesquisa e atributos de contato associados a este contato. Qualquer direcionamento e personalização baseados nos dados deste contato serão perdidos.", - "first_name": "Primeiro Nome", - "last_name": "Sobrenome", "no_responses_found": "Nenhuma resposta encontrada", "not_provided": "Não fornecido", "search_contact": "Buscar contato", diff --git a/apps/web/locales/pt-PT.json b/apps/web/locales/pt-PT.json index ae4fceb203..8eb605b298 100644 --- a/apps/web/locales/pt-PT.json +++ b/apps/web/locales/pt-PT.json @@ -201,6 +201,10 @@ "environment_not_found": "Ambiente não encontrado", "environment_notice": "Está atualmente no ambiente {environment}.", "error": "Erro", + "error_component_description": "Este recurso não existe ou não tem os direitos necessários para aceder a ele.", + "error_component_title": "Erro ao carregar recursos", + "error_rate_limit_description": "Número máximo de pedidos alcançado. Por favor, tente novamente mais tarde.", + "error_rate_limit_title": "Limite de Taxa Excedido", "expand_rows": "Expandir linhas", "finish": "Concluir", "follow_these": "Siga estes", @@ -576,8 +580,6 @@ "contacts_table_refresh": "Atualizar contactos", "contacts_table_refresh_success": "Contactos atualizados com sucesso", "delete_contact_confirmation": "Isto irá eliminar todas as respostas das pesquisas e os atributos de contato associados a este contato. Qualquer direcionamento e personalização baseados nos dados deste contato serão perdidos.", - "first_name": "Primeiro Nome", - "last_name": "Apelido", "no_responses_found": "Nenhuma resposta encontrada", "not_provided": "Não fornecido", "search_contact": "Procurar contacto", diff --git a/apps/web/locales/ro-RO.json b/apps/web/locales/ro-RO.json index ca5fda4a77..8af0dd48da 100644 --- a/apps/web/locales/ro-RO.json +++ b/apps/web/locales/ro-RO.json @@ -201,6 +201,10 @@ "environment_not_found": "Mediul nu a fost găsit", "environment_notice": "Te afli în prezent în mediul {environment}", "error": "Eroare", + "error_component_description": "Această resursă nu există sau nu aveți drepturile necesare pentru a o accesa.", + "error_component_title": "Eroare la încărcarea resurselor", + "error_rate_limit_description": "Numărul maxim de cereri atins. Vă rugăm să încercați din nou mai târziu.", + "error_rate_limit_title": "Limită de cereri depășită", "expand_rows": "Extinde rândurile", "finish": "Finalizează", "follow_these": "Urmați acestea", @@ -306,7 +310,7 @@ "product_manager": "Manager de Produs", "profile": "Profil", "profile_id": "ID Profil", - "project_configuration": "Configurarea Proiectului", + "project_configuration": "Configurare proiect", "project_creation_description": "Organizați sondajele în proiecte pentru un control mai bun al accesului.", "project_id": "ID proiect", "project_name": "Nume proiect", @@ -576,8 +580,6 @@ "contacts_table_refresh": "Reîmprospătare contacte", "contacts_table_refresh_success": "Contactele au fost actualizate cu succes", "delete_contact_confirmation": "Acest lucru va șterge toate răspunsurile la sondaj și atributele de contact asociate cu acest contact. Orice țintire și personalizare bazată pe datele acestui contact vor fi pierdute.", - "first_name": "Prenume", - "last_name": "Nume de familie", "no_responses_found": "Nu s-au găsit răspunsuri", "not_provided": "Nu a fost furnizat", "search_contact": "Căutați contact", diff --git a/apps/web/locales/zh-Hant-TW.json b/apps/web/locales/zh-Hant-TW.json index 29f99ede6a..c126770d78 100644 --- a/apps/web/locales/zh-Hant-TW.json +++ b/apps/web/locales/zh-Hant-TW.json @@ -201,6 +201,10 @@ "environment_not_found": "找不到環境", "environment_notice": "您目前在 '{'environment'}' 環境中。", "error": "錯誤", + "error_component_description": "此資源不存在或您沒有存取權限。", + "error_component_title": "載入資源錯誤", + "error_rate_limit_description": "已達 到最大 請求 次數。請 稍後 再試。", + "error_rate_limit_title": "限流超過", "expand_rows": "展開列", "finish": "完成", "follow_these": "按照這些步驟", @@ -576,8 +580,6 @@ "contacts_table_refresh": "重新整理聯絡人", "contacts_table_refresh_success": "聯絡人已成功重新整理", "delete_contact_confirmation": "這將刪除與此聯繫人相關的所有調查回應和聯繫屬性。任何基於此聯繫人數據的定位和個性化將會丟失。", - "first_name": "名字", - "last_name": "姓氏", "no_responses_found": "找不到回應", "not_provided": "未提供", "search_contact": "搜尋聯絡人",