Guides: formatting of translated language
Hello everyone!
Is it possible to have a different formatting for a translated language?
For example, the original sentence would be:
"Hello world!"
Translated into Spanish I would like to have every second letter bold:
"Hola mundo!"
And into German I like it italic:
"Hallo Welt!"
Sure, I would have to setup each bold letter manually, but currently I don't even see that option. It seems like I can configure the format just for the original language.
Thank you!
0
Comments
The only way I can think of doing that would be to have 3 separate guides, and in the segmentation include specific rules that state the guide for Spanish users can be viewed by users with a language of Spanish, and so forth.
Then import a translation file for the Spanish guide (similarly for the German one)
I appreciate it doesn't scale well and isn't a great solution but in case it helps.
Thank you for answering!
Does it mean that it is actually not possible to format other languages, right? @pendosupport
I haven't played with translated guides much, but if it's done well I would expect you should be able to use the CSS :lang() selector to do this. Add a code block with custom CSS that does something like this (I haven't tested this, it's meant as a starting point only)
:lang(es) :nth-letter(odd) {
font-weight: 700;
}
:lang(de) {
font-style: italic;
}
Hi Kaleb Haugen, thanks for the answer!
Can you maybe tell me where I can find the CSS option...? I think it was available when you launched the designer last year. But now I don't see that option anywhere anymore...
Depending on your configuration you may have custom code blocks disabled. You can find more information about them here: https://support.pendo.io/hc/en-us/articles/360032206011-Using-Custom-Code-Block
Please sign in to leave a comment.