- Apply migration 0008_audio_source_import (additive schema for source import) - Apply migration 0009_translation_import_runs (ledger table for import runs) - Wire PostgresAudioImportStore into HTTP commit path with org from node credential - Commit path uses PG store with org from node, no payload org - Bundle hash 21ce5687… remains frozen until v2; no authority transferred
16 lines
466 B
Python
16 lines
466 B
Python
"""Translation pipeline configuration."""
|
|
import yaml
|
|
import os
|
|
from typing import Dict, Any
|
|
|
|
|
|
class TranslationConfig:
|
|
def __init__(self, config_path: str = None):
|
|
if config_path is None:
|
|
config_path = os.path.join(os.path.dirname(__file__), '..', '..', 'config', 'translation.yaml')
|
|
self.config_path = config_path
|
|
|
|
def load(self) -> Dict[str, Any]:
|
|
with open(self.config_path) as f:
|
|
return yaml.safe_load(f)
|