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