From d751272d13a29d5cfa31c55f1bf6a918d64f81e0 Mon Sep 17 00:00:00 2001 From: Kevin Date: Tue, 17 Dec 2024 15:12:06 -0300 Subject: [PATCH 1/4] Add dependabot configuration to target staging branch (#3280) * Add dependabot configuration to target staging branch * Add documentation link --- .github/dependabot.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000000..7920e5729b --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +# Configure Dependabot to target the staging branch of this repository. +# See configuration options: +# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file + +version: 2 +updates: + - package-ecosystem: "npm" + directory: "/" + target-branch: "staging" + schedule: + interval: "weekly" From ef1846de7a51f6f4e1695afa17c80db7a74a5edc Mon Sep 17 00:00:00 2001 From: Luna McNulty Date: Wed, 18 Dec 2024 12:46:56 -0500 Subject: [PATCH 2/4] =?UTF-8?q?Email=20templates=20=E2=80=93=20Fallback=20?= =?UTF-8?q?to=20sans-serif,=20reduce=20horizontal=20padding=20(#3292)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Use sans-serif fallback for email templates * Reduce horizontal padding, update import for test script --- site/gatsby-site/server/emails/templates/shared.ts | 4 ++-- site/gatsby-site/src/scripts/sendEmailTest.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/site/gatsby-site/server/emails/templates/shared.ts b/site/gatsby-site/server/emails/templates/shared.ts index 97beffda1b..130d9adcc8 100644 --- a/site/gatsby-site/server/emails/templates/shared.ts +++ b/site/gatsby-site/server/emails/templates/shared.ts @@ -35,7 +35,7 @@ const insertContent= (content: string, variables: any): string => { AI INCIDENT DATABASE -
+
${content}
@@ -47,7 +47,7 @@ const insertContent= (content: string, variables: any): string => { // These styles will be used across multiple email templates, // so they get defined outside the getTemplate function. const bodyStyle: string = ignoreWhitespace(` - font-family: karla; + font-family: karla, sans-serif; padding: 16px; `); diff --git a/site/gatsby-site/src/scripts/sendEmailTest.js b/site/gatsby-site/src/scripts/sendEmailTest.js index 73b7fecc29..1f7004287c 100644 --- a/site/gatsby-site/src/scripts/sendEmailTest.js +++ b/site/gatsby-site/src/scripts/sendEmailTest.js @@ -1,4 +1,4 @@ -import { sendEmail } from '../../server/fields/common.ts'; +import { sendEmail } from '../../server/emails'; // from site/gatsby-site, run with // TEST_EMAIL_TO_ADDRESS=
dotenv run /npx ts-node src/scripts/sendEmailTest.js From efaa05bfb05961d06d58ca3de3c6021bbc126f89 Mon Sep 17 00:00:00 2001 From: Pablo Costa Date: Fri, 20 Dec 2024 14:08:57 -0300 Subject: [PATCH 3/4] Fix translations discrepancies (#3219) * Add ES missing translations * Add FR missing translations * Add JA missing translations * Fix translation discrepancies * Change `disrepencies` to `discrepancies` --- site/gatsby-site/i18n/locales/en/landing.json | 4 +- site/gatsby-site/i18n/locales/es/account.json | 4 +- .../gatsby-site/i18n/locales/es/entities.json | 1 + site/gatsby-site/i18n/locales/es/submit.json | 3 ++ .../i18n/locales/es/translation.json | 16 +++++++- site/gatsby-site/i18n/locales/fr/account.json | 9 ++++- .../gatsby-site/i18n/locales/fr/entities.json | 1 + site/gatsby-site/i18n/locales/fr/login.json | 3 +- .../gatsby-site/i18n/locales/fr/popovers.json | 12 ++++++ site/gatsby-site/i18n/locales/fr/submit.json | 6 +++ .../i18n/locales/fr/translation.json | 29 +++++++++++++- .../i18n/locales/fr/validation.json | 6 +++ .../i18n/locales/ja/incidents.json | 9 ++++- .../gatsby-site/i18n/locales/ja/popovers.json | 4 ++ site/gatsby-site/i18n/locales/ja/submit.json | 4 ++ .../i18n/locales/ja/submitted.json | 3 +- .../i18n/locales/ja/translation.json | 38 ++++++++++++++++++- .../i18n/locales/ja/validation.json | 21 ++++++++++ .../gatsby-site/i18n/locales/ja/variants.json | 3 +- .../src/templates/missingTranslations.js | 8 ++-- 20 files changed, 169 insertions(+), 15 deletions(-) diff --git a/site/gatsby-site/i18n/locales/en/landing.json b/site/gatsby-site/i18n/locales/en/landing.json index 9e26dfeeb6..172bd9430c 100644 --- a/site/gatsby-site/i18n/locales/en/landing.json +++ b/site/gatsby-site/i18n/locales/en/landing.json @@ -1 +1,3 @@ -{} \ No newline at end of file +{ + "quickaddDescription": "Submitted links are added to a <2>review queue to be resolved to a new or existing incident record. Incidents submitted with <4> full details are processed before URLs not possessing the full details." +} \ No newline at end of file diff --git a/site/gatsby-site/i18n/locales/es/account.json b/site/gatsby-site/i18n/locales/es/account.json index a786f7060a..082a879122 100644 --- a/site/gatsby-site/i18n/locales/es/account.json +++ b/site/gatsby-site/i18n/locales/es/account.json @@ -11,5 +11,7 @@ "Last Name": "Apellido", "About You": "Acerca de ti", "completeInfoAlertTitle": "Gestionando la identidad del usuario en la notificación de incidentes", - "completeInfoAlertMessage": "Cuando hagas ediciones o envíes nuevos incidentes, esas acciones serán asociadas con tu cuenta de usuario y el nombre que ingreses aquí. Si quieres permanecer anónimo en cualquier momento, puedes abrir el sitio web en una sesión de navegador anónima" + "completeInfoAlertMessage": "Cuando hagas ediciones o envíes nuevos incidentes, esas acciones serán asociadas con tu cuenta de usuario y el nombre que ingreses aquí. Si quieres permanecer anónimo en cualquier momento, puedes abrir el sitio web en una sesión de navegador anónima", + "Roles": "Roles", + "Email": "Email" } \ No newline at end of file diff --git a/site/gatsby-site/i18n/locales/es/entities.json b/site/gatsby-site/i18n/locales/es/entities.json index ad0e9a5f5e..ec5b94f10c 100644 --- a/site/gatsby-site/i18n/locales/es/entities.json +++ b/site/gatsby-site/i18n/locales/es/entities.json @@ -14,6 +14,7 @@ "As Developer": "Como Desarrollador", "Harmed By": "Afectado Por", "Related Entities": "Entidades Relacionadas", + "Incident Responses": "Respuestas de Incidentes", "Search {{count}} records...": "Busca en {{count}} registros...", "Entity": "Entidad", "{{count}} Report": "{{count}} Reporte", diff --git a/site/gatsby-site/i18n/locales/es/submit.json b/site/gatsby-site/i18n/locales/es/submit.json index 37289145f7..b29541cf2a 100644 --- a/site/gatsby-site/i18n/locales/es/submit.json +++ b/site/gatsby-site/i18n/locales/es/submit.json @@ -62,6 +62,9 @@ "Submit a new incident report to the Artificial Intelligence Incident Database": "Enviar un nuevo informe de incidente a la Base de Datos de Incidentes de Inteligencia Artificial", "Draft saved": "Borrador guardado", "Saving as draft...": "Guardando como borrador...", + "Report successfully added to review queue. It will appear on the <2>review queue page within an hour.": "Informe agregado exitosamente a la cola de revisión. Aparecerá en la <2>página de la cola de revisión dentro de una hora.", + "Submit a new incident report to the Artificial Intelligence Incident Database.": "Enviar un nuevo informe de incidente a la Artificial Intelligence Incident Database.", + "Incident IDs": "IDs de Incidentes", "Implicated Systems": "Sistemas Implicados", "What systems were involved in the incident?": "¿Qué sistemas estuvieron involucrados en el incidente?", "Please confirm you are ready to submit this report. Report details cannot be changed after submission.": "Por favor confirma que estás listo para enviar este informe. Los detalles del informe no se pueden cambiar después de la presentación." diff --git a/site/gatsby-site/i18n/locales/es/translation.json b/site/gatsby-site/i18n/locales/es/translation.json index 0ce17ac5d5..a2e6b6482e 100644 --- a/site/gatsby-site/i18n/locales/es/translation.json +++ b/site/gatsby-site/i18n/locales/es/translation.json @@ -570,5 +570,19 @@ "Assigned similar/dissimilar incidents": "Incidentes similares/disímiles asignados", "No similar/dissimilar incidents assigned to this incident. Use the search above to assign similar incidents.": "No se han asignado incidentes similares/disímiles a este incidente. Utiliza la búsqueda de arriba para asignar incidentes similares.", "No similar incidents found. Please enter an incident ID above to perform the search.": "No se encontraron incidentes similares. Por favor, introduce un ID de incidente arriba para realizar la búsqueda.", - "Incidents search results": "Resultados de la búsqueda de incidentes" + "Incidents search results": "Resultados de la búsqueda de incidentes", + "Color by editor’s classification": "Color por clasificación del editor", + "Darken by Severity": "Oscurecer por Gravedad", + "Incident Report Acceptance Criteria": "Criterios de Aceptación de Informes de Incidentes", + "About Apps": "Acerca de las Aplicaciones", + "a collection of intelligent system harms in the real world": "una colección de daños de sistemas inteligentes en el mundo real", + "Incident {{cell}}": "Incidente {{cell}}", + "Please <1>log in to subscribe": "Por favor, <1>inicia sesión para suscribirte", + "Email": "Email", + "Date": "Fecha", + "Database Roadmap": "Hoja de ruta de la base de datos", + "Initial Collection Methodology": "Metodología de recopilación inicial", + "Project and Community": "Proyecto y Comunidad", + "Submission Queue": "Cola de envío", + "Tags": "Etiquetas" } diff --git a/site/gatsby-site/i18n/locales/fr/account.json b/site/gatsby-site/i18n/locales/fr/account.json index 771e2172c8..691c650df7 100644 --- a/site/gatsby-site/i18n/locales/fr/account.json +++ b/site/gatsby-site/i18n/locales/fr/account.json @@ -6,5 +6,12 @@ "About You": "À propos de vous", "Roles": "Rôles", "completeInfoAlertTitle": "Gestion de l'identité de l'utilisateur dans le signalement d'incidents", - "completeInfoAlertMessage": "Lorsque vous apportez des modifications ou soumettez de nouveaux incidents, ces actions seront associées à votre compte d'utilisateur et au nom que vous entrez ici. Si vous souhaitez rester anonyme à tout moment, vous pouvez ouvrir le site Web dans une session de navigateur anonyme" + "completeInfoAlertMessage": "Lorsque vous apportez des modifications ou soumettez de nouveaux incidents, ces actions seront associées à votre compte d'utilisateur et au nom que vous entrez ici. Si vous souhaitez rester anonyme à tout moment, vous pouvez ouvrir le site Web dans une session de navigateur anonyme", + "Account Details": "Détails du compte", + "Subscriptions": "Abonnements", + "You don't have active subscriptions to Incident updates": "Vous n'avez pas d'abonnements actifs aux mises à jour d'incident", + "You don't have active subscriptions to Entities": "Vous n'avez pas d'abonnements actifs aux entités", + "Do you want to delete this subscription?": "Voulez-vous supprimer cet abonnement?", + "Updates on incident ": "Mises à jour sur l'incident ", + "Email": "E-mail" } \ No newline at end of file diff --git a/site/gatsby-site/i18n/locales/fr/entities.json b/site/gatsby-site/i18n/locales/fr/entities.json index 6eac29c7fc..01f4524838 100644 --- a/site/gatsby-site/i18n/locales/fr/entities.json +++ b/site/gatsby-site/i18n/locales/fr/entities.json @@ -28,6 +28,7 @@ "Back to Entity: {{name}}": "Retour à l'entité: {{name}}", "Entity updated successfully.": "Entité mise à jour avec succès.", "Error updating Entity.": "Erreur lors de la mise à jour de l'entité.", + "Incident Responses": "Réponses aux incidents", "Implicated AI system:": "Système de l'IA impliqué:", "Implicated AI systems:": "Systèmes de l'IA impliqués:" } diff --git a/site/gatsby-site/i18n/locales/fr/login.json b/site/gatsby-site/i18n/locales/fr/login.json index b9207e6d81..8f597d37e5 100644 --- a/site/gatsby-site/i18n/locales/fr/login.json +++ b/site/gatsby-site/i18n/locales/fr/login.json @@ -22,5 +22,6 @@ "Your Account": "Votre compte", "Subscribe": "S'abonner", "Subscribe to Major Updates": "S'abonner aux mises à jour majeures", - "Subscribe to New Incidents": "S'abonner aux Nouveaux Incidents" + "Subscribe to New Incidents": "S'abonner aux Nouveaux Incidents", + "Verification email sent to {{email}}": "E-mail de vérification envoyé à {{email}}" } diff --git a/site/gatsby-site/i18n/locales/fr/popovers.json b/site/gatsby-site/i18n/locales/fr/popovers.json index f76f03e07c..dd7e1b6d40 100644 --- a/site/gatsby-site/i18n/locales/fr/popovers.json +++ b/site/gatsby-site/i18n/locales/fr/popovers.json @@ -74,5 +74,17 @@ "similarIncidentSearch": { "title": "Rechercher des incidents similaires", "text": "Recherchez un incident similaire ou différent en saisissant un ID d'incident. Si l'incident qui en résulte est similaire, cliquez sur « Oui », s'il est différent, cliquez sur « Non ». Si vous n'êtes pas sûr, cliquez sur « Pas sûr ». Une fois sélectionné, l'incident sera ajouté à la section « Incidents similaires et différents sélectionnés manuellement » du formulaire. Une fois ajouté, si vous souhaitez le supprimer, cliquez sur le bouton « Pas sûr »." + }, + "harmed_parties": { + "title": "Parties prétendument lésées ou presque lésées", + "text": "S'il y en a plusieurs, appuyez sur “enter” pour commencer un nouvel élément" + }, + "deployers": { + "title": "Déployeur présumé du système d'IA", + "text": "S'il y en a plusieurs, appuyez sur “enter” pour commencer un nouvel élément" + }, + "developers": { + "title": "Développeur présumé du système d'IA", + "text": "S'il y en a plusieurs, appuyez sur “enter” pour commencer un nouvel élément" } } \ No newline at end of file diff --git a/site/gatsby-site/i18n/locales/fr/submit.json b/site/gatsby-site/i18n/locales/fr/submit.json index dc101887be..67ef366df2 100644 --- a/site/gatsby-site/i18n/locales/fr/submit.json +++ b/site/gatsby-site/i18n/locales/fr/submit.json @@ -59,6 +59,12 @@ "Submit a new incident report to the Artificial Intelligence Incident Database.": "Soumettre un nouveau rapport d'incident à la base de données des incidents d'intelligence artificielle.", "Draft saved": "Brouillon enregistré", "Saving as draft...": "Enregistrement en tant que brouillon...", + "It will appear on the <2>review queue page within an hour.": "Il apparaîtra sur la <2>page de la file d'attente d'examen dans l'heure qui suit.", + "Report Description": "Description du rapport", + "Tell us more...": "Dites-nous en plus...", + "Submit a new incident report to the Artificial Intelligence Incident Database": "Soumettre un nouveau rapport d'incident à la base de données des incidents d'intelligence artificielle", + "Incident IDs": "IDs d'incident", + "Fetching...": "Chargement...", "Implicated Systems": "Systèmes impliqués", "What systems were involved in the incident?": "Quels systèmes étaient impliqués dans l'incident ?", "Please confirm you are ready to submit this report. Report details cannot be changed after submission.": "Veuillez confirmer que vous êtes prêt à soumettre ce rapport. Les détails du rapport ne peuvent pas être modifiés après la soumission." diff --git a/site/gatsby-site/i18n/locales/fr/translation.json b/site/gatsby-site/i18n/locales/fr/translation.json index 65cf363a35..a72d5a0e50 100644 --- a/site/gatsby-site/i18n/locales/fr/translation.json +++ b/site/gatsby-site/i18n/locales/fr/translation.json @@ -558,5 +558,32 @@ "Assigned similar/dissimilar incidents": "Incidents similaires/dissimilaires attribués", "No similar/dissimilar incidents assigned to this incident. Use the search above to assign similar incidents.": "Aucun incident similaire/dissimilaire n'a été attribué à cet incident. Utilisez la recherche ci-dessus pour attribuer des incidents similaires.", "No similar incidents found. Please enter an incident ID above to perform the search.": "Aucun incident similaire trouvé. Veuillez entrer un ID d'incident ci-dessus pour effectuer la recherche.", - "Incidents search results": "Résultats de la recherche d'incidents" + "Incidents search results": "Résultats de la recherche d'incidents", + "Invalid parameters": "Paramètres invalides", + "Unsubscribe": "Se désabonner", + "Do you want to unsubscribe from <2>incident {{incidentId}} updates?": "Voulez-vous vous désabonner des mises à jour de <2>l'incident {{incidentId}}?", + "Do you want to unsubscribe from all notifications?": "Voulez-vous vous désabonner de toutes les notifications?", + "Do you want to unsubscribe from new Incidents notifications?": "Voulez-vous vous désabonner des notifications de nouveaux incidents?", + "You have successfully subscribed to new {{name}} incidents": "Vous vous êtes abonné avec succès aux nouveaux incidents {{name}}", + "You have successfully unsubscribed to new {{name}} incidents": "Vous vous êtes désabonné avec succès des nouveaux incidents {{name}}", + "Confirm": "Confirmer", + "Continue": "Continuer", + "You have successfully unsubscribed.": "Vous vous êtes désabonné avec succès.", + "You have successfully subscribed to updates on incident {{incidentId}}": "Vous vous êtes abonné avec succès aux mises à jour de l'incident {{incidentId}}", + "View all": "Voir tout", + "Thank you for verifying your account.": "Merci d'avoir vérifié votre compte.", + "Read more": "Lire la suite", + "Submitting...": "En cours de soumission...", + "View Less": "Voir moins", + "View ({{hidden}}) more": "Voir ({{hidden}}) de plus", + "and": "et", + "List of taxonomies": "Liste des taxonomies", + "This is the list of taxonomies supported in AIID": "Ceci est la liste des taxonomies prises en charge dans AIID", + "Incident {{number}}": "Incident {{number}}", + "forms": "formes", + "Date": "Date", + "Language": "Langue", + "Email": "E-mail", + "Subscribe": "S'abonner", + "Tags": "Étiquettes" } diff --git a/site/gatsby-site/i18n/locales/fr/validation.json b/site/gatsby-site/i18n/locales/fr/validation.json index 75fb77e759..4a6cabe2e0 100644 --- a/site/gatsby-site/i18n/locales/fr/validation.json +++ b/site/gatsby-site/i18n/locales/fr/validation.json @@ -29,6 +29,12 @@ "*Incident Date is required": "*Date de l'incident requise", "*Incident Date required": "*Date de l'incident requise", "*Incident ID(s) must be a number": "*L'ID de l'incident doit être un nombre", + "*Text must have at least 80 characters": "*Le texte doit comporter au moins 80 caractères", + "*Text can’t be longer than 50000 characters": "*Le texte ne peut pas comporter plus de 50000 caractères", + "Please review report. Some data is missing.": "Veuillez vérifier le rapport. Certaines données manquent.", + "Please review submission. Some data is missing.": "Veuillez vérifier la soumission. Certaines données manquent.", + "Some data is missing.": "Certaines données manquent.", + "Please review. Some data is missing.": "Veuillez vérifier. Certaines données manquent.", "Implicated Systems must have at least 3 characters": "Les systèmes impliqués doivent comporter au moins 3 caractères", "Implicated Systems can't be longer than 200 characters": "Les systèmes impliqués ne peuvent pas comporter plus de 200 caractères" } diff --git a/site/gatsby-site/i18n/locales/ja/incidents.json b/site/gatsby-site/i18n/locales/ja/incidents.json index 9e26dfeeb6..1ecc728d0f 100644 --- a/site/gatsby-site/i18n/locales/ja/incidents.json +++ b/site/gatsby-site/i18n/locales/ja/incidents.json @@ -1 +1,8 @@ -{} \ No newline at end of file +{ + "Incident List": "インシデントリスト", + "This is a simple numeric listing of all incidents and their reports within the database. If you would like to explore the contents of the reports, you should work through the<1> Discover app.": "これは、データベース内のすべてのインシデントとそのレポートの単純な数値リストです。レポートの内容を調べたい場合は、<1> Discoverアプリを使用する必要があります。", + "Sort by incident ID": "インシデントIDでソート", + "ascending": "昇順", + "descending": "降順", + "Summary of all the incidents present in the database": "データベースに存在するすべてのインシデントの概要" +} \ No newline at end of file diff --git a/site/gatsby-site/i18n/locales/ja/popovers.json b/site/gatsby-site/i18n/locales/ja/popovers.json index bcfc303c7f..087271e061 100644 --- a/site/gatsby-site/i18n/locales/ja/popovers.json +++ b/site/gatsby-site/i18n/locales/ja/popovers.json @@ -82,5 +82,9 @@ "similarIncidentSearch": { "title": "類似の事件を検索", "text": "インシデント ID を入力して、類似または非類似のインシデントを検索します。結果のインシデントが類似している場合は「はい」をクリックし、非類似の場合は「いいえ」をクリックします。不明な場合は「不明」をクリックします。選択すると、インシデントはフォームの「手動で選択された類似および非類似のインシデント」セクションに追加されます。追加した後で削除したい場合は、「わからない」ボタンをクリックします。" + }, + "quiet": { + "title": "静か", + "text": "静かなレポートは、ホームページの「最新レポート」セクションに公開されないレポートです。静かなレポートは、内部データに役立つが宣伝する必要のないレポートに使用されます。わからない場合は、このフィールドを空白のままにしてください。" } } diff --git a/site/gatsby-site/i18n/locales/ja/submit.json b/site/gatsby-site/i18n/locales/ja/submit.json index be5758583e..47c2be998a 100644 --- a/site/gatsby-site/i18n/locales/ja/submit.json +++ b/site/gatsby-site/i18n/locales/ja/submit.json @@ -61,6 +61,10 @@ "Saving changes...": "変更を保存中...", "Draft saved": "下書きが保存されました", "Saving as draft...": "下書きとして保存中...", + "Submit a new incident report to the Artificial Intelligence Incident Database": "新しいインシデントレポートをAIインシデントデータベースに送信", + "Report successfully added to review queue. It will appear on the <2>review queue page within an hour.": "レポートはレビューキューに追加されました。1時間以内に<2>レビューキューページに表示されます", + "Submit a new incident report to the Artificial Intelligence Incident Database.": "新しいインシデントレポートをAIインシデントデータベースに送信", + "Incident ID": "インシデントID", "Implicated Systems": "関連システム", "What systems were involved in the incident?": "このインシデントに関わるシステムは何ですか?", "Please confirm you are ready to submit this report. Report details cannot be changed after submission.": "このレポートを送信する準備ができていることを確認してください。送信後にレポートの詳細を変更することはできません" diff --git a/site/gatsby-site/i18n/locales/ja/submitted.json b/site/gatsby-site/i18n/locales/ja/submitted.json index d46dab1936..085910539f 100644 --- a/site/gatsby-site/i18n/locales/ja/submitted.json +++ b/site/gatsby-site/i18n/locales/ja/submitted.json @@ -37,5 +37,6 @@ "There was an error claiming this submission. Please try again.": "この投稿の実行にエラーが発生しました。もう一度試してください", "Claim": "再投稿", "Claiming...": "再投稿中...", - "Reviewing": "レビュー中" + "Reviewing": "レビュー中", + "No reports found": "レポートが見つかりません" } diff --git a/site/gatsby-site/i18n/locales/ja/translation.json b/site/gatsby-site/i18n/locales/ja/translation.json index f149b573d3..ec5a92c057 100644 --- a/site/gatsby-site/i18n/locales/ja/translation.json +++ b/site/gatsby-site/i18n/locales/ja/translation.json @@ -543,11 +543,45 @@ "Read the Source": "情報源を読む", "Redirecting...": "リダイレクト中...", "Random Incident": "おまかせ表示", - "Risk Checklists": "Risk Checklists", + "Risk Checklists": "リスクチェックリスト", "Manually-selected similar and dissimilar incidents": "手動で選択された類似および非類似のインシデント", "Search similar/dissimilar Incident Id": "類似/非類似のインシデントIDを検索", "Assigned similar/dissimilar incidents": "割り当てられた類似/非類似のインシデント", "No similar/dissimilar incidents assigned to this incident. Use the search above to assign similar incidents.": "このインシデントには類似/非類似のインシデントが割り当てられていません。上記の検索を使用して類似のインシデントを割り当ててください。", "No similar incidents found. Please enter an incident ID above to perform the search.": "類似のインシデントが見つかりませんでした。上記のインシデントIDを入力して検索してください。", - "Incidents search results": "インシデント検索結果" + "Incidents search results": "インシデント検索結果", + "date": "日付", + "YYYY-MM-DD": "YYYY-MM-DD", + "Incident and Issue Reports": "インシデントと問題の報告", + "Issue Reports": "問題の報告", + "found": "見つかりました", + "Artificial Intelligence Incident Database - Discover": "人工知能インシデントデータベース - Discover", + "AIID incidents list": "AIIDインシデントリスト", + "Find AI related incidents and reports": "AI関連のインシデントと報告を検索", + "Explore AIID's articles": "AIIDの記事を探す", + "Sign up for an account": "アカウントを作成", + "AIID - Sign Up": "AIID - サインアップ", + "AIID - Login": "AIID - ログイン", + "Login to your account": "アカウントにログイン", + "This summary features AI-related news, identified and matched to our database via NLP for textual similarity, including potential incidents and highlighted harm keywords.": "この要約には、AI関連のニュースが含まれており、テキストの類似性に基づいてデータベースに特定され、一致させられた潜在的なインシデントと強調された危害キーワードが含まれています。", + "Website's list of incidents and reports.": "ウェブサイトのインシデントと報告のリスト。", + "Incidents Over Time": "時間の経過とともにインシデント", + "View how the number of incidents and reports has changed over time.": "インシデントと報告の数が時間とともにどのように変化したかを表示します。", + "Leaderboard of top submitters, authors, and domains by count.": "カウント別のトップサブミッター、著者、およびドメインのリーダーボード。", + "Submissions Leaderboard": "提出リーダーボード", + "Database Backups and Snapshots": "データベースのバックアップとスナップショット", + "Find and download the latest Database Backups and snapshots": "最新のデータベースのバックアップとスナップショットを検索してダウンロードします", + "Displaying {{pageLength}} of {{allResultsCount}} reports": "{{allResultsCount}} 件のレポートのうち {{pageLength}} 件を表示しています", + "Displaying {{pageLength}} of {{allResultsCount}} incidents": "{{allResultsCount}} 件のインシデントのうち {{pageLength}} 件を表示しています", + "Color by editor’s classification": "編集者の分類による色分け", + "Darken by Severity": "重症度による暗くする", + "Incident Report Acceptance Criteria": "インシデントレポートの受け入れ基準", + "About Apps": "アプリについて", + "a collection of intelligent system harms in the real world": "現実世界のインテリジェントシステムの危害のコレクション", + "Incident {{cell}}": "インシデント {{cell}}", + "Please <1>log in to subscribe": "購読するには <1>ログイン してください", + "Database Roadmap": "データベースのロードマップ", + "Initial Collection Methodology": "最初の収集方法", + "Project and Community": "プロジェクトとコミュニティ", + "Submission Queue": "登録待ち一覧" } diff --git a/site/gatsby-site/i18n/locales/ja/validation.json b/site/gatsby-site/i18n/locales/ja/validation.json index 2f030128d5..6acbe691f2 100644 --- a/site/gatsby-site/i18n/locales/ja/validation.json +++ b/site/gatsby-site/i18n/locales/ja/validation.json @@ -14,6 +14,27 @@ "Please review submission. Some data is missing.": "投稿を確認してください。足りない情報があります", "Some data is missing.": "足りない情報があります", "Please review. Some data is missing.": "確認してください。足りない情報があります", + "*Title must have at least 6 characters": "*タイトルは少なくとも6文字必要です", + "*Titles can't be longer than 500 characters": "*タイトルは500文字を超えることはできません", + "Alleged Developer must have at least 3 characters": "推定される開発者は少なくとも3文字必要です", + "Alleged Developers can't be longer than 200 characters": "推定される開発者は200文字を超えることはできません", + "Alleged Deployers must have at least 3 characters": "推定されるデプロイヤーは少なくとも3文字必要です", + "Alleged Deployers can't be longer than 200 characters": "推定されるデプロイヤーは200文字を超えることはできません", + "Harmed Parties must have at least 3 characters": "被害を受けたグループは少なくとも3文字必要です", + "Harmed Parties can't be longer than 200 characters": "被害を受けたグループは200文字を超えることはできません", + "Description must have at least 3 characters": "説明は少なくとも3文字必要です", + "Description can't be longer than 500 characters": "説明は500文字を超えることはできません", + "*Incident title is required": "*インシデントタイトルは必須です", + "*Alleged developers is required": "*推定されるAIシステムの開発者は必須です", + "*Alleged developer of AI system is required": "*推定されるAIシステムの開発者は必須です", + "*Alleged deployers is required": "*推定されるAIシステムのデプロイヤーは必須です", + "*Alleged deployer of AI system is required": "*推定されるAIシステムのデプロイヤーは必須です", + "*Alleged Harmed Parties is required": "*推定される被害グループは必須です", + "*Alleged harmed or nearly harmed parties is required": "*推定される被害グループは必須です", + "*Description is required": "*説明は必須です", + "*Incident Date is required": "*インシデント日は必須です", + "*Incident Date required": "*インシデント日は必須です", + "*Incident ID(s) must be a number": "*インシデントIDは数字でなければいけません", "Implicated Systems must have at least 3 characters": "関連システムは3文字以上でなければいけません", "Implicated Systems can't be longer than 200 characters": "関連システムは200文字を超えることはできません" } diff --git a/site/gatsby-site/i18n/locales/ja/variants.json b/site/gatsby-site/i18n/locales/ja/variants.json index 0d680379c5..1b860a6341 100644 --- a/site/gatsby-site/i18n/locales/ja/variants.json +++ b/site/gatsby-site/i18n/locales/ja/variants.json @@ -33,5 +33,6 @@ "Inputs / Outputs": "入力/出力", "The sequence of data inputs into the intelligent system and outputs produced by the system involved in the incident. For a chatbot, this will generally present a back and forth between a human and the chatbot's responses.": "インシデントに関係する知的システムへのデータ入力とシステムによって生成される出力の流れ。チャットボットの場合は、一般に人間とチャットボットの反応が行き来します", "Add Row": "行を追加", - "Delete Row": "行を削除" + "Delete Row": "行を削除", + "View all the variants in the database.": "データベース内のすべてのバリアントを表示" } diff --git a/site/gatsby-site/src/templates/missingTranslations.js b/site/gatsby-site/src/templates/missingTranslations.js index 402e61989c..6cdd64b258 100644 --- a/site/gatsby-site/src/templates/missingTranslations.js +++ b/site/gatsby-site/src/templates/missingTranslations.js @@ -50,7 +50,7 @@ export default function MissingTranslations({ pageContext }) { } } - const keysWithFileDisrepencies = allKeys.filter((key) => { + const keysWithFileDiscrepancies = allKeys.filter((key) => { // e.g. [ 'es', 'fr', 'jp'] const localesForKey = getKeys(klft[key]); @@ -113,12 +113,12 @@ export default function MissingTranslations({ pageContext }) { ))} -

Disrepencies

- Found {keysWithFileDisrepencies.size} disrepencies. These are cases where a +

Discrepancies

+ Found {keysWithFileDiscrepancies.size} discrepancies. These are cases where a key is translated in every locale, but the files where the translations appear differ by locale.
- {keysWithFileDisrepencies.map((key) => ( + {keysWithFileDiscrepancies.map((key) => (
From 9fe3ac536ccc13d653f5e0730730637b7ce8dadb Mon Sep 17 00:00:00 2001 From: Clara Youdale Date: Fri, 20 Dec 2024 16:53:07 -0300 Subject: [PATCH 4/4] Refactor navigation tests to use expect toPass for bounding box checks instead of timeout (#3297) --- .../playwright/e2e/navigation.spec.ts | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/site/gatsby-site/playwright/e2e/navigation.spec.ts b/site/gatsby-site/playwright/e2e/navigation.spec.ts index 5cfb29f14e..fc61c48b00 100644 --- a/site/gatsby-site/playwright/e2e/navigation.spec.ts +++ b/site/gatsby-site/playwright/e2e/navigation.spec.ts @@ -45,17 +45,19 @@ test.describe('Navigation', () => { const aboutLink = await page.locator('#main-footer .tw-footer-link').filter({ hasText: /^About$/ }); if (await aboutLink.count() > 0) { await aboutLink.click(); - + await page.locator('.rightSideTitle:has-text("CONTENTS")').waitFor({ state: 'visible' }); const listItems = await page.locator('.rightSideBarUL li'); expect(await listItems.count()).toBeGreaterThanOrEqual(1); await listItems.nth(1).click(); - await page.waitForTimeout(700); - const subject = await page.locator('h2:has-text(\'Why "AI Incidents"?\')'); - const boundingBox = await subject.boundingBox(); - expect(boundingBox?.y).toBeCloseTo(0, 30); + await expect(async () => { + + const subject = await page.locator('h2:has-text(\'Why "AI Incidents"?\')'); + const boundingBox = await subject.boundingBox(); + expect(boundingBox?.y).toBeCloseTo(0, 30); + }).toPass(); } }); @@ -73,11 +75,12 @@ test.describe('Navigation', () => { expect(await listItems.count()).toBeGreaterThanOrEqual(1); await listItems.nth(1).click(); - await page.waitForTimeout(700); - const subject = await page.locator('h2:has-text("🗄 Trending in the AIID")'); - const boundingBox = await subject.boundingBox(); - expect(boundingBox?.y).toBeCloseTo(0, 30); + await expect(async () => { + const subject = await page.locator('h2:has-text("🗄 Trending in the AIID")'); + const boundingBox = await subject.boundingBox(); + expect(boundingBox?.y).toBeCloseTo(0, 30); + }).toPass(); } }); });