svelte-i18n/compiler/index.ts

10 lines
268 B
TypeScript
Raw Permalink Normal View History

2020-01-24 03:52:38 +01:00
import { parse } from './deps/parser.ts'
const log_json = (o: object) => console.log(JSON.stringify(o, null, 2))
const ast = parse(`{taxableArea, select,
yes {An additional {taxRate, number, percent} tax will be collected.}
other {No taxes apply.}
}`)
log_json(ast)