mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-28 10:56:02 +00:00
Minor: show generic message in error boundary for loading chunk error (#15783)
* Minor: show generic message in error boundary for loading chunk error * Update error handling and localization strings
This commit is contained in:
parent
77bb725d5b
commit
59e875994e
@ -21,6 +21,16 @@ const ErrorFallback: React.FC<FallbackProps> = ({
|
||||
error,
|
||||
resetErrorBoundary,
|
||||
}) => {
|
||||
const isChunkLoadError = error.message?.startsWith('Loading chunk');
|
||||
|
||||
const message = isChunkLoadError
|
||||
? t('message.please-refresh-the-page')
|
||||
: error.message;
|
||||
|
||||
const title = isChunkLoadError
|
||||
? t('message.look-like-upgraded-om')
|
||||
: ERROR500;
|
||||
|
||||
return (
|
||||
<Result
|
||||
extra={
|
||||
@ -32,8 +42,8 @@ const ErrorFallback: React.FC<FallbackProps> = ({
|
||||
</Button>
|
||||
}
|
||||
status="404"
|
||||
subTitle={error.message}
|
||||
title={ERROR500}
|
||||
subTitle={message}
|
||||
title={title}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
@ -1498,6 +1498,7 @@
|
||||
"list-of-strings-regex-patterns-csv": "Geben Sie eine Liste von Zeichenfolgen/Regex-Mustern als durch Kommas getrennte Werte ein.",
|
||||
"login-fail-attempt-message": "Allowed attampt on consicutive failed login to application.",
|
||||
"logout-confirmation": "Sind Sie sicher, dass Sie sich abmelden möchten?",
|
||||
"look-like-upgraded-om": "Look like you have upgraded OpenMetadata",
|
||||
"made-announcement": "made an announcement",
|
||||
"make-an-announcement": "Machen Sie eine Ankündigung!",
|
||||
"manage-airflow-api": "OpenMetadata - Verwaltete Airflow-APIs",
|
||||
@ -1634,6 +1635,7 @@
|
||||
"pipeline-will-trigger-manually": "Die Pipeline wird nur manuell ausgelöst.",
|
||||
"pipeline-will-triggered-manually": "Die Pipeline wird nur manuell ausgelöst",
|
||||
"please-enter-to-find-data-assets": "Drücke Enter, um Datenvermögenswerte mit <0>{{keyword}}<0> zu finden.",
|
||||
"please-refresh-the-page": "Please refresh the page to see the changes.",
|
||||
"please-type-text-to-confirm": "Please type {{text}} to confirm.",
|
||||
"process-pii-sensitive-column-message": "Überprüfe die Spaltennamen, um PII-sensitive/nicht sensitive Spalten automatisch zu taggen.",
|
||||
"process-pii-sensitive-column-message-profiler": "Wenn aktiviert, wird die Beispiel-Daten analysiert, um geeignete PII-Tags für jede Spalte zu bestimmen.",
|
||||
|
@ -1498,6 +1498,7 @@
|
||||
"list-of-strings-regex-patterns-csv": "Enter a list of strings/regex patterns as a comma separated value",
|
||||
"login-fail-attempt-message": "Allowed attempt on consecutive failed login to application.",
|
||||
"logout-confirmation": "Are you sure you want to logout?",
|
||||
"look-like-upgraded-om": "Look like you have upgraded OpenMetadata",
|
||||
"made-announcement": "made an announcement",
|
||||
"make-an-announcement": "Make an announcement!",
|
||||
"manage-airflow-api": "OpenMetadata - Managed Airflow APIs",
|
||||
@ -1634,6 +1635,7 @@
|
||||
"pipeline-will-trigger-manually": "Pipeline will only be triggered manually.",
|
||||
"pipeline-will-triggered-manually": "Pipeline will only be triggered manually",
|
||||
"please-enter-to-find-data-assets": "Press Enter to find data assets containing <0>{{keyword}}<0>",
|
||||
"please-refresh-the-page": "Please refresh the page to see the changes.",
|
||||
"please-type-text-to-confirm": "Please type {{text}} to confirm.",
|
||||
"process-pii-sensitive-column-message": "Check column names to auto tag PII Senstive/nonSensitive columns.",
|
||||
"process-pii-sensitive-column-message-profiler": "When enabled, the sample data will be analysed to determine appropriate PII tags for each column",
|
||||
|
@ -1498,6 +1498,7 @@
|
||||
"list-of-strings-regex-patterns-csv": "Ingrese una lista de cadenas/patrones regex como un valor separado por comas",
|
||||
"login-fail-attempt-message": "Intento permitido en el inicio de sesión consecutivamente fallido a la aplicación.",
|
||||
"logout-confirmation": "¿Estás seguro de que quieres cerrar sesión?",
|
||||
"look-like-upgraded-om": "Look like you have upgraded OpenMetadata",
|
||||
"made-announcement": "hizo un anuncio",
|
||||
"make-an-announcement": "¡Haz un anuncio!",
|
||||
"manage-airflow-api": "OpenMetadata - APIs de Airflow",
|
||||
@ -1634,6 +1635,7 @@
|
||||
"pipeline-will-trigger-manually": "El pipeline solo se activará manualmente.",
|
||||
"pipeline-will-triggered-manually": "El pipeline solo se activará manualmente.",
|
||||
"please-enter-to-find-data-assets": "Presiona Enter para encontrar activos de datos que contengan <0>{{keyword}}<0>",
|
||||
"please-refresh-the-page": "Please refresh the page to see the changes.",
|
||||
"please-type-text-to-confirm": "Por favor, escribe {{text}} para confirmar.",
|
||||
"process-pii-sensitive-column-message": "Revisa los nombres de las columnas para etiquetar automáticamente las columnas sensibles/no sensibles de PII.",
|
||||
"process-pii-sensitive-column-message-profiler": "Cuando está habilitado, los datos de muestra se analizarán para determinar las etiquetas de PII apropiadas para cada columna.",
|
||||
|
@ -1498,6 +1498,7 @@
|
||||
"list-of-strings-regex-patterns-csv": "Entrer une liste de chaînes / motifs regex comme une valeur séparée par des virgules",
|
||||
"login-fail-attempt-message": "Allowed attampt on consicutive failed login to application.",
|
||||
"logout-confirmation": "Are you sure you want to logout?",
|
||||
"look-like-upgraded-om": "Look like you have upgraded OpenMetadata",
|
||||
"made-announcement": "made an announcement",
|
||||
"make-an-announcement": "Faire une annonce",
|
||||
"manage-airflow-api": "OpenMetadata - Managed Airflow APIs",
|
||||
@ -1634,6 +1635,7 @@
|
||||
"pipeline-will-trigger-manually": "Le pipeline ne sera déclenché manuellement que.",
|
||||
"pipeline-will-triggered-manually": "Le pipeline ne sera déclenché manuellement que.",
|
||||
"please-enter-to-find-data-assets": "Appuyez sur Entrée pour trouver les actifs de données contenant <0>{{keyword}}</0>",
|
||||
"please-refresh-the-page": "Please refresh the page to see the changes.",
|
||||
"please-type-text-to-confirm": "Please type {{text}} to confirm.",
|
||||
"process-pii-sensitive-column-message": "Vérifiez les noms de colonne pour marquer automatiquement les colonnes sensibles/non sensibles.",
|
||||
"process-pii-sensitive-column-message-profiler": "Quand activé, les données d'échantillon seront analysées pour déterminer les balises PII appropriées pour chaque colonne.",
|
||||
|
@ -1498,6 +1498,7 @@
|
||||
"list-of-strings-regex-patterns-csv": "הזן רשימה של מחרוזות / דפוסי Regex כערך מופרך בפסיקים",
|
||||
"login-fail-attempt-message": "ניתן עדיין לנסות במקרה של כמה ניסיונות כושלים רצופים להתחבר ליישום.",
|
||||
"logout-confirmation": "האם אתה בטוח שברצונך להתנתק?",
|
||||
"look-like-upgraded-om": "Look like you have upgraded OpenMetadata",
|
||||
"made-announcement": "made an announcement",
|
||||
"make-an-announcement": "פרסם הודעה!",
|
||||
"manage-airflow-api": "OpenMetadata - ממונה APIs ל-Airflow",
|
||||
@ -1634,6 +1635,7 @@
|
||||
"pipeline-will-trigger-manually": "תהליך הטעינה יופעל באופן ידני בלבד.",
|
||||
"pipeline-will-triggered-manually": "תהליך הטעינה יופעל באופן ידני בלבד",
|
||||
"please-enter-to-find-data-assets": "יש ללחוץ Enter כדי למצוא נכסי נתונים הכוללים <0>{{keyword}}</0>",
|
||||
"please-refresh-the-page": "Please refresh the page to see the changes.",
|
||||
"please-type-text-to-confirm": "Please type {{text}} to confirm.",
|
||||
"process-pii-sensitive-column-message": "בדוק את שמות העמודות כדי לקבוע תגי PII Sensistive/NonSensitive באופן אוטומטי.",
|
||||
"process-pii-sensitive-column-message-profiler": "כאשר מופעל, המידע הדוגמא ינתח כדי לקבוע תגי PII המתאימים לכל עמודה.",
|
||||
|
@ -1498,6 +1498,7 @@
|
||||
"list-of-strings-regex-patterns-csv": "Enter a list of strings/regex patterns as a comma separated value",
|
||||
"login-fail-attempt-message": "Allowed attampt on consicutive failed login to application.",
|
||||
"logout-confirmation": "Are you sure you want to logout?",
|
||||
"look-like-upgraded-om": "Look like you have upgraded OpenMetadata",
|
||||
"made-announcement": "made an announcement",
|
||||
"make-an-announcement": "お知らせを作成してください!",
|
||||
"manage-airflow-api": "OpenMetadata - Managed Airflow APIs",
|
||||
@ -1634,6 +1635,7 @@
|
||||
"pipeline-will-trigger-manually": "パイプラインは手動でのみ起動できます。",
|
||||
"pipeline-will-triggered-manually": "パイプラインは手動でのみ起動できます",
|
||||
"please-enter-to-find-data-assets": "Press Enter to find data assets containing <0>{{keyword}}<0>",
|
||||
"please-refresh-the-page": "Please refresh the page to see the changes.",
|
||||
"please-type-text-to-confirm": "Please type {{text}} to confirm.",
|
||||
"process-pii-sensitive-column-message": "Check column names to auto tag PII Senstive/nonSensitive columns.",
|
||||
"process-pii-sensitive-column-message-profiler": "When enabled, the sample data will be analysed to determine appropriate PII tags for each column",
|
||||
|
@ -1498,6 +1498,7 @@
|
||||
"list-of-strings-regex-patterns-csv": "Voer een lijst met strings/regex-patronen in als een door komma's gescheiden waarde",
|
||||
"login-fail-attempt-message": "Toegestane poging bij opeenvolgende mislukte aanmelding bij de toepassing.",
|
||||
"logout-confirmation": "Weet je zeker dat je wilt uitloggen?",
|
||||
"look-like-upgraded-om": "Look like you have upgraded OpenMetadata",
|
||||
"made-announcement": "heeft een aankondiging gedaan",
|
||||
"make-an-announcement": "Doe een aankondiging!",
|
||||
"manage-airflow-api": "OpenMetadata - Beheerde Airflow API's",
|
||||
@ -1634,6 +1635,7 @@
|
||||
"pipeline-will-trigger-manually": "Pipeline wordt alleen handmatig geactiveerd.",
|
||||
"pipeline-will-triggered-manually": "Pipeline wordt alleen handmatig geactiveerd",
|
||||
"please-enter-to-find-data-assets": "Druk op Enter om data-assets te vinden met <0>{{keyword}}<0>",
|
||||
"please-refresh-the-page": "Please refresh the page to see the changes.",
|
||||
"please-type-text-to-confirm": "Typ alstublieft {{text}} om te bevestigen.",
|
||||
"process-pii-sensitive-column-message": "Controleer kolomnamen om PII-gevoelige/niet-gevoelige kolommen automatisch te taggen.",
|
||||
"process-pii-sensitive-column-message-profiler": "Indien ingeschakeld, wordt de voorbeelddata geanalyseerd om geschikte PII-tags voor elke kolom te bepalen",
|
||||
|
@ -1498,6 +1498,7 @@
|
||||
"list-of-strings-regex-patterns-csv": "Insira uma lista de strings/padrões regex como um valor separado por vírgulas",
|
||||
"login-fail-attempt-message": "Tentativa permitida após falhas consecutivas de login no aplicativo.",
|
||||
"logout-confirmation": "Você tem certeza de que deseja sair?",
|
||||
"look-like-upgraded-om": "Look like you have upgraded OpenMetadata",
|
||||
"made-announcement": "made an announcement",
|
||||
"make-an-announcement": "Faça um anúncio!",
|
||||
"manage-airflow-api": "OpenMetadata - APIs Gerenciadas de Airflow",
|
||||
@ -1634,6 +1635,7 @@
|
||||
"pipeline-will-trigger-manually": "O pipeline só será acionado manualmente.",
|
||||
"pipeline-will-triggered-manually": "O pipeline só será acionado manualmente",
|
||||
"please-enter-to-find-data-assets": "Pressione Enter para encontrar ativos de dados contendo <0>{{keyword}}<0>",
|
||||
"please-refresh-the-page": "Please refresh the page to see the changes.",
|
||||
"please-type-text-to-confirm": "Digite {{text}} para confirmar.",
|
||||
"process-pii-sensitive-column-message": "Verifique os nomes das colunas para marcar automaticamente as colunas PII Sensíveis/Não Sensíveis.",
|
||||
"process-pii-sensitive-column-message-profiler": "Quando ativado, os dados de amostra serão analisados para determinar as tags PII apropriadas para cada coluna.",
|
||||
|
@ -1498,6 +1498,7 @@
|
||||
"list-of-strings-regex-patterns-csv": "Введите список строк/шаблонов регулярных выражений в виде значения, разделенного запятыми.",
|
||||
"login-fail-attempt-message": "Allowed attampt on consicutive failed login to application.",
|
||||
"logout-confirmation": "Вы уверены, что хотите выйти из системы?",
|
||||
"look-like-upgraded-om": "Look like you have upgraded OpenMetadata",
|
||||
"made-announcement": "made an announcement",
|
||||
"make-an-announcement": "Сделайте объявление!",
|
||||
"manage-airflow-api": "OpenMetadata - Managed Airflow APIs",
|
||||
@ -1634,6 +1635,7 @@
|
||||
"pipeline-will-trigger-manually": "Пайплайн будет запускаться только вручную.",
|
||||
"pipeline-will-triggered-manually": "Пайплайн будет запускаться только вручную.",
|
||||
"please-enter-to-find-data-assets": "Press Enter to find data assets containing <0>{{keyword}}<0>",
|
||||
"please-refresh-the-page": "Please refresh the page to see the changes.",
|
||||
"please-type-text-to-confirm": "Please type {{text}} to confirm.",
|
||||
"process-pii-sensitive-column-message": "Проверьте имена столбцов, чтобы автоматически пометить столбцы с конфиденциальной/неконфиденциальной информацией PII.",
|
||||
"process-pii-sensitive-column-message-profiler": "Если эта функция включена, образцы данных будут проанализированы для определения соответствующих тегов PII для каждого столбца.",
|
||||
|
@ -1498,6 +1498,7 @@
|
||||
"list-of-strings-regex-patterns-csv": "以逗号分隔的值的形式输入字符串/正则表达式列表",
|
||||
"login-fail-attempt-message": "Allowed attampt on consicutive failed login to application.",
|
||||
"logout-confirmation": "您确定要注销登录吗?",
|
||||
"look-like-upgraded-om": "Look like you have upgraded OpenMetadata",
|
||||
"made-announcement": "made an announcement",
|
||||
"make-an-announcement": "发布公告",
|
||||
"manage-airflow-api": "OpenMetadata 管理的 Airflow APIs",
|
||||
@ -1634,6 +1635,7 @@
|
||||
"pipeline-will-trigger-manually": "工作流仅能手动触发",
|
||||
"pipeline-will-triggered-manually": "工作流仅能手动触发",
|
||||
"please-enter-to-find-data-assets": "Press Enter to find data assets containing <0>{{keyword}}<0>",
|
||||
"please-refresh-the-page": "Please refresh the page to see the changes.",
|
||||
"please-type-text-to-confirm": "Please type {{text}} to confirm.",
|
||||
"process-pii-sensitive-column-message": "检查列名以自动标记PII敏感/非敏感列",
|
||||
"process-pii-sensitive-column-message-profiler": "启用后,将分析样本数据以确定每个列的适当PII标记",
|
||||
|
Loading…
x
Reference in New Issue
Block a user