0.1.1 • Published 1 year ago

nuxt-i18n-default v0.1.1

Weekly downloads
26
License
MIT
Repository
github
Last release
1 year ago

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