LangSync

Configuration

Configure LangSync via langsync.config.ts.

LangSync is configured through a langsync.config.ts file at the root of your project.

Example

langsync.config.ts
import { defineConfig } from 'langsync';
 
export default defineConfig({
  input: './src/i18n',
  output: './translations',
  locales: ['en', 'de'],
  defaultLocale: 'en',
  framework: 'i18next',
});

Options

OptionTypeRequiredDescription
inputstringyesPath to the source i18n directory.
outputstringyesPath to the output/translations directory.
localesstring[]yesList of supported locales.
defaultLocalestringnoReference locale used for validation.
frameworkstringnoOne of i18next, ngx-translate, react-intl.
excel.filestringnoExcel filename (default: translations.xlsx).
excel.sheetNamestringnoWorksheet name (default: Translations).

On this page