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

String with special characters #370

Open
Piras314 opened this issue Jun 13, 2024 · 1 comment
Open

String with special characters #370

Piras314 opened this issue Jun 13, 2024 · 1 comment

Comments

@Piras314
Copy link

Is it possible to create a (preferrably multiline) string ignoring [] {} * etc without having to backslash or {""} every single instance of a special character? I have hundreds/thousands of lines of text riddled with special characters that I need to put into a fluent file.

@alerque
Copy link
Contributor

alerque commented Jun 13, 2024

If your messages are stuffed full of special characters and you are not using placables or other features anyway it might be easier to make the whole string a quoted literal and only have to worry about escaping double quotes.

That being said it is hard to be sure from the small amount of context, but it really sounds like you're doing something wrong architecturally to end up in this position in the first place. Are these individual messages or document size blobs? Have you considered using a templating system to to either handle translated content (there are templating languages that can embed Fluent features) or pre-processing the content from a more editable format into fluent so the translator has a more domain specific set of formatting to work with? There might be other better solutions too if we understood better what your actual use case was.

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

No branches or pull requests

2 participants