10 lines
304 B
JavaScript
10 lines
304 B
JavaScript
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));
|
|
}
|