Replies: 1 comment
-
In this case, I recommend concatenating the text with a script as follows: func _ready() -> void:
text = "[center]" + tr("Text") Either way, I feel having a default alignment property in RichTextLabel would make more sense. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As far as I know, the only easy way to center a
RichTextLabel
is to use the[center]
BBCode tag:However, this means
Text
won't be auto-translated unless the translation table includes the[center]
tag.Tags aren't rendered, so they should be excluded from auto translation.
Beta Was this translation helpful? Give feedback.
All reactions