Skip to content

shrpne/nuxt-i18n-default

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published