mirror of
https://github.com/cupcakearmy/svelte-i18n.git
synced 2024-11-16 18:10:43 +01:00
10 lines
268 B
TypeScript
10 lines
268 B
TypeScript
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)
|