Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add forceText attr to allow specifying output text type #39

Merged
merged 2 commits into from
Nov 19, 2021

Conversation

sdboyer
Copy link
Contributor

@sdboyer sdboyer commented Nov 19, 2021

This introduces a @cuetsy(forceText="") attribute, which allows the author to specify an exact string that cuetsy will just render through on translation.

This is the best current answer we have for problems stemming from #35, but a hack like this is quite likely to be useful on into the future as well as we run into other limitations.

It does make me a bit uncomfortable, but the fact that the generated typescript on the other side is almost certain to be checked...well, helps.

@sdboyer sdboyer merged commit 8c25464 into main Nov 19, 2021
@sdboyer sdboyer deleted the sdboyer/force-text-attr branch November 19, 2021 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant