Appearance
wiz-text
Use this component to output localizable text.
Installation
Run following command in the terminal to install the module:
wiz install wiz-textLink
import wizText from 'wiz-text';
Add this link directly to the layout (App.vue) or block (./common/blocks/ or ./common/blocks-library/):
export default {
components: {
wizText
}
...Basic usage
Markup:
<wiz-text :text="$t('text')"></wiz-text>Localization:
<i18n>
{
"en": {
"text": "My awesome text"
}
}
</i18n>Parameters
text (String) - string with text (e.g.:'My awesome text') or keypath to localized text ("$t('text')")