You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Say I'm translating the whole mail body or the like. The content will be one or more lines, i.e. each line has its own line end. However, I can't figure out how to write that in fluent elegantly. I can do it this way:
body = this is a line with a line end.{"\u000a"}
Or I have to take care the last line end in my program, which means I need to do something like ''.join(part + '\n' for part in parts) or content += translated + '\n' instead of ''.join(parts) or content += translated.
The text was updated successfully, but these errors were encountered:
Is that trailing newline intended to be localizable? As in, are the locales in which it should be left out?
If so, then you may need to include it as you have it. But if it's meant to be there for each locale, then it's almost certainly better to leave it out of the FTL file.
Say I'm translating the whole mail body or the like. The content will be one or more lines, i.e. each line has its own line end. However, I can't figure out how to write that in fluent elegantly. I can do it this way:
Or I have to take care the last line end in my program, which means I need to do something like
''.join(part + '\n' for part in parts)
orcontent += translated + '\n'
instead of''.join(parts)
orcontent += translated
.The text was updated successfully, but these errors were encountered: