Docs
References
Config

Config Reference

Customize how terai works via the terai.config.ts file in your project.

import { defineConfig } from '@pandacss/dev'
 
export default defineConfig({
  // your configuration options here...
})

File system options

include

  • Type: string[]
  • Default: []

List of files glob to to look for your locale declarations.

{
  "include": ["./src/**/*.{js,jsx,ts,tsx}"]
}

exclude

  • Type: string[]
  • Default: []

List of files glob to ignore.

{
  "exclude": []
}

outDir

  • Type: string
  • Default: "./locale-system"

The output directory for your locale system.

{
  "outDir": "./locale-system"
}

Locale options

projectLocale

  • Type: string
  • Default: ""

The base locale used in your project messages

{
  "projectLocale": "en"
}

outLocales

  • Type: string[]
  • Default: []

The aditional locales you want to support

{
  "outLocales": ["es", "it"]
}

translator

  • Type: ({ dictionary, locale, projectLocale }: { dictionary: Dictionary locale: Locale projectLocale: Locale }) => Promise<Dictionary>
  • Default: undefined

The translator for your messages