Configure languages

BabelEdit can work with different frameworks and adapts to their file layout.

Add languages to your translation project

Frameworks with a single file per translation

Some frameworks (like ngx-translate) have one JSON file per language. Add new languages by:

  • dragging & dropping translation files (JSON, PHP)
  • selecting a directory to search for files
  • creating a new file in BabelEdit

Frameworks with multiple files per language

Some frameworks (e.g. Laravel) use multiple files per language. Add new languages by:

  • drag & drop of a language folder
  • selecting an existing language folder
  • creating a new folder for the files in BabelEdit

BabelEdit automatically collects all language files found in these folders.

Primary language

Choose one language as your primary language — this is usually the language you use for development. The primary language is used as source for machine translation features such as suggestion and pre-translate.

You can configure the primary language at the bottom of the configure languages dialog.

Custom languages

BabelEdit also supports custom languages. You can use them to either support languages which are not included in our language list or to create special variations. E.g. for specific customers of your application, or to create a polite or formal version of your UI.

How to add custom language codes to BabelEdit
  1. Open the Languages dialog from in the toolbar.
  2. To add a new language file, use the Add button, and select New from the drop-down.
  3. The Language code not found? link at the bottom of the language list opens the custom language configuration.
  4. Click New to create your language.
  5. Now enter the name and the code you want to use. If you are building a variant of an existing language, select the spell checker and the machine translation language you want to use.
  6. Click Close and select your new language code from the list.