Skip to content

[gatsby-theme-i18n] LocalizedLink incorrect type definition #171

Description

@pettinarip

The LocalizedLink component is requiring a language prop. https://github.com/gatsbyjs/themes/blob/master/packages/gatsby-theme-i18n/index.d.ts#L18

Expected
The language prop should be optional since if you don't send it, it fallback into the locale found in the context https://github.com/gatsbyjs/themes/blob/master/packages/gatsby-theme-i18n/src/components/localized-link.js#L8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions