Skip to content
This repository has been archived by the owner on May 23, 2019. It is now read-only.

How to convert AST object back into string pattern? #118

Closed
rightaway opened this issue Nov 15, 2015 · 2 comments
Closed

How to convert AST object back into string pattern? #118

rightaway opened this issue Nov 15, 2015 · 2 comments

Comments

@rightaway
Copy link

If you have an AST object representing an ICU message pattern, how can you convert that AST object to its string representation as a pattern?

I don't mean formatting the string. What I'd like to know is how to produce the pattern 'The price is: {price, number, USD}' from an AST object rather than the formatted message 'The price is: $1.00'.

@rightaway rightaway changed the title How to get convert AST object back into string pattern? How to convert AST object back into string pattern? Nov 15, 2015
@ericf
Copy link
Collaborator

ericf commented Nov 15, 2015

@rightaway
Copy link
Author

Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants