export var slugToSentenceCase = function (slug) {
    // Split the slug into words.
    var words = slug.split("-");
    // Convert each word to sentence case.
    var sentenceCaseWords = words.map(function (word) {
        // Capitalize the first letter of the word.
        var firstLetter = word.charAt(0).toUpperCase();
        // Convert the rest of the word to lowercase.
        var restOfWord = word.slice(1).toLowerCase();
        return "".concat(firstLetter).concat(restOfWord);
    });
    // Join the words back together.
    return sentenceCaseWords.join(" ");
};
