#How to create new lines in UI forms using translations?

1 messages · Page 1 of 1 (latest)

last matrix
#

When adding text directly to UI forms, \n can be used to signify line spacing; however, using translation keys (from .lang files) doesn't allow me to use \n.

How do I create line spacing using translation keys?

As an example, I need a UI button to have two lines like so:

(Without translation keys) "Button Text\nButton Subtext"

^ How do I do this with translation keys? ^

bright knot
#

``` If you use `` instead of “” you can just enter in the text.

Example :
Hello Bedrock Addons Discord

Is the same as

“Hello Bedrock \nAddons \nDiscord!” ```

left trench
#

I didn't know template literals could also do that

last matrix
flat axle
last matrix
last matrix
flat axle
last matrix
flat axle
#

you might not need one of the %

atomic mantle
#

yeh

#

only one % at the start