UNPKG

speech-rule-engine

Version:

A standalone speech rule engine for XML structures, based on the original engine from ChromeVox.

10 lines (9 loc) 304 B
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)); }