feat: extend transcript languages (#36964)

This commit is contained in:
Jorg Are
2025-07-02 17:16:26 +01:00
committed by GitHub
parent 7b739ea2f5
commit 1e2a2d9653
2 changed files with 6 additions and 1 deletions

View File

@@ -724,7 +724,9 @@ def get_all_transcript_languages():
third_party_transcription_languages.update(cielo_fidelity['PREMIUM']['languages'])
third_party_transcription_languages.update(cielo_fidelity['PROFESSIONAL']['languages'])
all_languages_dict = dict(settings.ALL_LANGUAGES, **third_party_transcription_languages)
# combines ALL_LANGUAGES with additional languages that should be supported for transcripts
extended_all_languages = settings.ALL_LANGUAGES + settings.EXTENDED_VIDEO_TRANSCRIPT_LANGUAGES
all_languages_dict = dict(extended_all_languages, **third_party_transcription_languages)
# Return combined system settings and 3rd party transcript languages.
all_languages = []
for key, value in sorted(all_languages_dict.items(), key=lambda k_v: k_v[1]):