Natural language detection for Joi validation.
import JoiBase from 'joi';
import JoiTinyld from 'joi-tinyld';
const Joi = JoiBase.extend(JoiTinyld);
Joi.string().language('en');
Joi.string().language('en', 'fr');For the "light" version:
import JoiTinyld from 'joi-tinyld/light';For the "heavy" version:
import JoiTinyld from 'joi-tinyld/heavy';Check the tinyld docs for the differences. You might have to dig a little.