Skip to content

translations in UI component (Sharing dialog) not showing in Dashboard app #310

Discussion options

You must be logged in to vote

Found what I needed. Instead of importing d2-i18n, the component needs to import the i18n object from the /locales directory

Not this:
import i18n from 'd2-i18n'
But this:
import i18n from './locales/index.js'

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jenniferarnesen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant