mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-25 00:16:23 +02:00
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:
parent
19f73e4cdc
commit
f95fd4f052
560 changed files with 236300 additions and 99 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue