Feat: TrustGraph i18n & Documentation Translation Updates (#781)

Native CLI i18n: The TrustGraph CLI has built-in translation support
that dynamically loads language strings. You can test and use
different languages by simply passing the --lang flag (e.g., --lang
es for Spanish, --lang ru for Russian) or by configuring your
environment's LANG variable.

Automated Docs Translations: This PR introduces autonomously
translated Markdown documentation into several target languages,
including Spanish, Swahili, Portuguese, Turkish, Hindi, Hebrew,
Arabic, Simplified Chinese, and Russian.
This commit is contained in:
Alex Jenkins 2026-04-14 07:07:58 -04:00 committed by GitHub
parent 19f73e4cdc
commit f95fd4f052
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
560 changed files with 236300 additions and 99 deletions

View file

@ -8,6 +8,7 @@ import pytest
# import asyncio
# import tracemalloc
# import warnings
import logging
from unittest.mock import MagicMock
# Uncomment the lines below to enable asyncio debug mode and tracemalloc
@ -33,19 +34,14 @@ def mock_loki_handler(session_mocker=None):
# Create a mock LokiHandler that does nothing
original_loki_handler = logging_loki.LokiHandler
class MockLokiHandler:
class MockLokiHandler(logging.Handler):
"""Mock LokiHandler that doesn't make network calls."""
def __init__(self, *args, **kwargs):
pass
super().__init__()
def emit(self, record):
pass
def flush(self):
pass
def close(self):
pass
return
# Replace the real LokiHandler with our mock
logging_loki.LokiHandler = MockLokiHandler