File tree Expand file tree Collapse file tree
workers/translation-worker/translation_worker Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4242
4343
4444class TranslationActivities (ActivityWithProgress ):
45- @activity_defn (name = "translation.worker_config " )
45+ @activity_defn (name = "translation.worker-config " )
4646 async def translation_worker_config (self ) -> TranslationWorkerConfig :
4747 worker_config = cast (TranslationWorkerConfig , lifespan_worker_config ())
4848 return worker_config
4949
50- @activity_defn (name = "translation.create_translation_batches " )
50+ @activity_defn (name = "translation.create-translation-batches " )
5151 async def create_translation_batches (
5252 self , project : str , target_language : LanguageAlpha2
5353 ) -> list [tuple [str , list [list [str ]]]]:
@@ -62,7 +62,7 @@ async def create_translation_batches(
6262 )
6363 return batches
6464
65- @activity_defn (name = "translation.translate_docs " )
65+ @activity_defn (name = "translation.translate-docs " )
6666 async def translate_docs (
6767 self ,
6868 doc_id_batch_with_lang : tuple [str , list [list [str ]]],
You can’t perform that action at this time.
0 commit comments