Без опису

123456789101112
  1. var sentenceCase = require('sentence-case')
  2. /**
  3. * Dot case a string.
  4. *
  5. * @param {String} string
  6. * @param {String} [locale]
  7. * @return {String}
  8. */
  9. module.exports = function (string, locale) {
  10. return sentenceCase(string, locale, '.')
  11. }