stuff
This commit is contained in:
parent
bc92231240
commit
b8225c639e
11904 changed files with 1472749 additions and 133 deletions
9
node_modules/speech-rule-engine/mjs/common/file_util.js
generated
vendored
Normal file
9
node_modules/speech-rule-engine/mjs/common/file_util.js
generated
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { SystemExternal } from './system_external.js';
|
||||
export function makePath(path) {
|
||||
return path.match('/$') ? path : path + '/';
|
||||
}
|
||||
export function localePath(locale, ext = 'json') {
|
||||
return (makePath(SystemExternal.jsonPath) +
|
||||
locale +
|
||||
(ext.match(/^\./) ? ext : '.' + ext));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue