diff --git a/app/utils/i18n.py b/app/utils/i18n.py index e04ac3d..880bfa6 100644 --- a/app/utils/i18n.py +++ b/app/utils/i18n.py @@ -36,7 +36,7 @@ def compile_po_to_mo(po_path: str, mo_path: str) -> bool: # Log the actual error for debugging import logging logger = logging.getLogger('timetracker') - logger.warning(f"Error compiling {po_path}: {e}") + logger.warning(f"Error compiling {po_path}: {e}", exc_info=True) return False diff --git a/scripts/extract_translations.py b/scripts/extract_translations.py index 876aa1e..8dfc890 100644 --- a/scripts/extract_translations.py +++ b/scripts/extract_translations.py @@ -14,7 +14,7 @@ def main(): run(['pybabel', 'extract', '-F', 'babel.cfg', '-o', 'messages.pot', '.']) # Initialize languages if not already - languages = ['en', 'nl', 'de', 'fr', 'it', 'fi', 'es', 'ar', 'he'] + languages = ['en', 'nl', 'de', 'fr', 'it', 'fi', 'es', 'ar', 'he', 'nb'] for lang in languages: po_dir = os.path.join('translations', lang, 'LC_MESSAGES') po_path = os.path.join(po_dir, 'messages.po')