$ npm i -S penguin-link
Then edit your package.json
file to include the component.
{
"penguin": {
"components": {
"Link": "penguin-link"
}
}
}
<a data-component='Link' data-props='{"href":"/mypage"}'>
My page
</a>
This component adds the current language to your links. /mypage
is converted to /<current-language>/mypage
.
href
- The link-target.