---
title: "Configure languages"
description: "Set up languages and primary language in BabelEdit"
canonical: "https://www.codeandweb.com/babeledit/documentation/configure-languages"
product: "babeledit"
source: "html"
---

# Configure languages

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

  ![Add languages to your translation project](https://www.codeandweb.com/static/cc46de719143af11725a113928d68f3e/283d3/tour-3-add-languages.png)

## Frameworks with a single file per translation

Some frameworks (like [ngx-translate](https://www.codeandweb.com/babeledit/documentation/frameworks/angular.md#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](https://www.codeandweb.com/babeledit/documentation/frameworks/laravel.md)) 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](https://www.codeandweb.com/static/176a1affe3f7605f1ec124731c2b1aba/283d3/how-to-add-a-custom-language-to-babeledit%402x.png)

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.

## In this section

- [Installation](https://www.codeandweb.com/babeledit/documentation.md)
- [Framework selection](https://www.codeandweb.com/babeledit/documentation/framework-selection.md)
- [Main screen](https://www.codeandweb.com/babeledit/documentation/main-screen.md)
- [Project configuration](https://www.codeandweb.com/babeledit/documentation/project-configuration.md)
- [Adding translations](https://www.codeandweb.com/babeledit/documentation/adding-translations.md)
- [Search & filters](https://www.codeandweb.com/babeledit/documentation/search-and-filters.md)
- [Editing tools](https://www.codeandweb.com/babeledit/documentation/editing-tools.md)
- [Import & export](https://www.codeandweb.com/babeledit/documentation/import-export.md)
- [.NET (.resx)](https://www.codeandweb.com/babeledit/documentation/frameworks/dotnet.md)
- [Angular](https://www.codeandweb.com/babeledit/documentation/frameworks/angular.md)
- [Ember.js](https://www.codeandweb.com/babeledit/documentation/frameworks/ember-js.md)
- [Flutter (.arb)](https://www.codeandweb.com/babeledit/documentation/frameworks/flutter.md)
- [Gettext (.po, .pot)](https://www.codeandweb.com/babeledit/documentation/frameworks/po-files.md)
- [i18next (json)](https://www.codeandweb.com/babeledit/documentation/frameworks/i18next.md)
- [Java](https://www.codeandweb.com/babeledit/documentation/frameworks/java.md)
- [JSON](https://www.codeandweb.com/babeledit/documentation/frameworks/json.md)
- [Laravel (php/json)](https://www.codeandweb.com/babeledit/documentation/frameworks/laravel.md)
- [React](https://www.codeandweb.com/babeledit/documentation/frameworks/react.md)
- [Ruby On Rails](https://www.codeandweb.com/babeledit/documentation/frameworks/ruby-on-rails.md)
- [Svelte](https://www.codeandweb.com/babeledit/documentation/frameworks/svelte.md)
- [Vue.js](https://www.codeandweb.com/babeledit/documentation/frameworks/vue-js.md)
- [YAML](https://www.codeandweb.com/babeledit/documentation/frameworks/yaml.md)
- [Overview](https://www.codeandweb.com/babeledit/documentation/features.md)
- [Machine Translation](https://www.codeandweb.com/babeledit/documentation/machine-translation.md)
- [ConsistencyAI](https://www.codeandweb.com/babeledit/documentation/consistency-ai.md)
- [Spell Checker](https://www.codeandweb.com/babeledit/documentation/spellchecker.md)
- [Similar Phrases](https://www.codeandweb.com/babeledit/documentation/translation-memory.md)
