Skip to content

Let's use AI to Earn!

523 B
Raw Blame
import { fallbackLng, languages } from '@/app/i18n/languageConfig'

export { fallbackLng, languages }
export const defaultNS = 'common'
export const cookieName = 'i18next'

export function getOptions(lng = fallbackLng, ns: string | string[] = [defaultNS, 'route']) {
  return {
    // debug: true,
    supportedLngs: languages,
    // preload: languages,
    fallbackLng,
    lng,
    fallbackNS: defaultNS,
    defaultNS,
    ns,
    // backend: {
    //   projectId: '01b2e5e8-6243-47d1-b36f-963dbb8bcae3'
    // }
  }
}