From bd1a7b5a5ab79df7ee081814837366e12c3ea5a9 Mon Sep 17 00:00:00 2001 From: Nicola Benaglia Date: Tue, 20 May 2025 09:14:10 +0200 Subject: [PATCH] Add comment --- scripts/i18n-checker.py | 3 ++- src/hooks/useQortalMessageListener.tsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/i18n-checker.py b/scripts/i18n-checker.py index 12bd976..45cfaa2 100644 --- a/scripts/i18n-checker.py +++ b/scripts/i18n-checker.py @@ -18,7 +18,8 @@ def is_excluded(path): def is_ignorable(text): return ( - re.fullmatch(r'[A-Z0-9_]+', text) and 'action' in text + re.fullmatch(r'[A-Z0-9_]+', text) and + any(keyword in text.lower() for keyword in ['action', 'status']) ) def is_console_log_line(line): diff --git a/src/hooks/useQortalMessageListener.tsx b/src/hooks/useQortalMessageListener.tsx index ec89437..3105bdc 100644 --- a/src/hooks/useQortalMessageListener.tsx +++ b/src/hooks/useQortalMessageListener.tsx @@ -165,7 +165,7 @@ export function openIndexedDB() { reject('Error opening IndexedDB'); }; }); -} +} // TODO translate export const listOfAllQortalRequests = [ 'ADD_FOREIGN_SERVER',