๐Ÿ“ฆ langgenius / dify

๐Ÿ“„ settings.ts ยท 17 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17import type { InitOptions } from 'i18next'
import { namespacesCamelCase } from './resources'

export function getInitOptions(): InitOptions {
  return {
    // We do not have en for fallback
    load: 'currentOnly',
    fallbackLng: 'en-US',
    partialBundledLanguages: true,
    keySeparator: false,
    ns: namespacesCamelCase,
    interpolation: {
      escapeValue: false,
    },
  }
}