Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Missing type definitions for original i18next properties #37

@scrlkx

Description

@scrlkx

Hey!

Please, take a look into the config bellow.

import i18n from "@astrolicious/i18n";

i18n({
  ns: [
    "common",
    "home",
    "hero",
    "how-we-work",
    "our-clients",
    "services",
    "cases",
    "who-we-are",
    "careers",
    "blog",
    "contact",
    "footer",
    "404",
    "500",
  ],
  defaultNamespace: "common",
  locales: ["en", "es"],
  defaultLocale: "en",
  strategy: "prefix",
  rootRedirect: {
    status: 301,
    destination: "en",
  },
})

If you try to use it on astro.config.mjs you should have no problem, but if you try it to move it into a TypeScript file it will complain that the ns property doesn't exist.

Maybe we should inherit the original properties from i18next? Is there any workaround I can use to trick it to have all the original properties?

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions