nuxt-i18n-default

Add $td() method to specify default value


Keywords
vue, nuxt, i18n, default
License
MIT
Install
npm install nuxt-i18n-default@0.0.2

Documentation

nuxt-i18n-default

NPM Package Minified Size License: MIT

Add $td() method to specify default value

Install

NPM

npm install nuxt-i18n-default

Register Nuxt module

// nuxt-config.js
module.exports = {
    modules: [
        'nuxt-i18n-default',
        ['@nuxtjs/i18n', {
            // options
        }],
    ],
};

Usage

{{ $td('My default text', 'message.hello') }}

License

MIT License