Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

589 B
Raw Blame
import type { InitOptions } from 'i18next'
import type { Namespace } from './resources'
import { defaultLocale } from './locale'
import { defaultNS, namespaces } from './resources'

export function getInitOptions(requiredNamespaces: readonly Namespace[] = namespaces): InitOptions {
  return {
    // We do not have en for fallback
    load: 'currentOnly',
    fallbackLng: defaultLocale,
    partialBundledLanguages: true,
    defaultNS,
    enableSelector: 'optimize',
    keySeparator: false,
    ns: [...requiredNamespaces],
    interpolation: {
      escapeValue: false,
    },
  }
}