My First Playground

node v8.17.0
version: 1.0.0
endpointsharetweet
This is a playground to test JavaScript. It runs a completely standard copy of Node.js on a virtual server created just for you. Every one of npm’s 300,000+ packages are pre-installed, so try it out:
var Vue = require('vue') var VueI18n = require('vue-i18n') Vue.use(VueI18n) var locale = 'fr' var messages = { "password.recall": "Rappel des conditions :", "password.constraints.mindigits": "Contient aucun chiffre | Contient au moins 1 chiffre | Contient au moins {count} chiffres", } const i18n = new VueI18n({ locale, messages, }) i18n.setLocaleMessage(locale, messages)
i18n.t('password.recall')
i18n.tc('password.constraints.mindigits', 3)
Loading…

no comments

    sign in to comment