site/node_modules/speech-rule-engine/js/common/file_util.js
2024-10-14 08:09:33 +02:00

15 lines
489 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.localePath = exports.makePath = void 0;
const system_external_1 = require("./system_external");
function makePath(path) {
return path.match('/$') ? path : path + '/';
}
exports.makePath = makePath;
function localePath(locale, ext = 'json') {
return (makePath(system_external_1.default.jsonPath) +
locale +
(ext.match(/^\./) ? ext : '.' + ext));
}
exports.localePath = localePath;