@vendure/ngx-translate-extract
Version:
Extract strings from projects using ngx-translate
18 lines • 652 B
JavaScript
import { JsonCompiler } from './json.compiler.js';
import { NamespacedJsonCompiler } from './namespaced-json.compiler.js';
import { PoCompiler } from './po.compiler.js';
export class CompilerFactory {
static create(format, options) {
switch (format) {
case 'pot':
return new PoCompiler(options);
case 'json':
return new JsonCompiler(options);
case 'namespaced-json':
return new NamespacedJsonCompiler(options);
default:
throw new Error(`Unknown format: ${format}`);
}
}
}
//# sourceMappingURL=compiler.factory.js.map