Skip to content

How to Add a New Target Language Code

By default, 20+ target languages are supported. What if you need to add a new one?

  1. First, understand that adding a target language depends on whether your dubbing and translation channels support it. Many dubbing channels only support common languages, not less common ones. Additionally, translation channels like DeepL only support a limited set of target languages.

Before adding, make sure both your chosen translation and dubbing channels support the target language you want to add, otherwise adding it will be pointless.

  1. Get the language code for the target language

Visit https://docs.cloud.google.com/translate/docs/languages?hl=zh-cn to find the language code. For example, Punjabi (Pakistan) pa-PK has the code pa-PK. If your translation or dubbing channel doesn't support codes with a -, you can use only the part before the hyphen, e.g., pa.

  1. In the software directory/videotrans/ folder, create a plain text file named newlang.txt. On the first line, enter the target language code pa-PK. To add multiple codes, put each one on a separate line, as shown below:

Save the file and restart the software.

Note: If your translation or dubbing channel does not support the target language, an error will occur.