file_util.js 457 B

12345678910111213
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.makePath = makePath;
  4. exports.localePath = localePath;
  5. const system_external_js_1 = require("./system_external.js");
  6. function makePath(path) {
  7. return path.match('/$') ? path : path + '/';
  8. }
  9. function localePath(locale, ext = 'json') {
  10. return (makePath(system_external_js_1.SystemExternal.jsonPath) +
  11. locale +
  12. (ext.match(/^\./) ? ext : '.' + ext));
  13. }