@awesome-fe/translate
Version:
Translation utils
21 lines • 504 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.toText = void 0;
function toText(content) {
if (typeof content === 'object') {
if (content.constructor.name === '$NilClass') {
return '';
}
else {
return JSON.stringify(content);
}
}
else if (typeof content === 'string') {
return content;
}
else {
return '';
}
}
exports.toText = toText;
//# sourceMappingURL=to-text.js.map