Skip to content

[Translations] Add translation provider #190

@BrettCleary

Description

@BrettCleary

Right now, we add conditional i18n props to every component's interface and add default values for the english translations.

This duplicates work if the same translation is used across components and creates lots of boilerplate.

We should consider adding our own provider for these translations so each phrase is only added once and the only boilerplate is a use hook.

Another option is to integrate with the i18next package like we do in the client with

import { t } from 'i18next'

We should also consider the best solution for sharing translations across all repos but that can be a separate issue

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