Skip to content

Is server-side only context possible? #2226

Closed Answered by vicary
vicary asked this question in Q&A
Discussion options

You must be logged in to vote

Answering my own question, it's not possible but we have a workaround. It's more or less a feature of the islands design.

Rather than rendering the i18n terms down the child nodes, you have to counter-intuitively expose children props to upper levels in the virtual DOM.

<>
  <NavIsland>
    <Translate>Nav Item 1</Translate>
    <Translate>Nav Item 2</Translate>
    <Translate>Nav Item 3</Translate>
  </NavIsland>

  <Translate>Other text</Translate>
</>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vicary
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