import 'i18next'

import type common from '../public/locales/en-US/common.json'
import type index from '../public/locales/en-US/index.json'
import type studio from '../public/locales/en-US/studio.json'
import type login from '../public/locales/en-US/login.json'
import type member from '../public/locales/en-US/member.json'
import type order from '../public/locales/en-US/order.json'

interface I18nNamespaces {
    common: typeof common
    index: typeof index
    studio: typeof studio
    login: typeof login
    member: typeof member
    order: typeof order
}

declare module 'i18next' {
    interface CustomTypeOptions {
        defaultNS: 'common'
        resources: I18nNamespaces
    }
}
