Expose Node.can_auto_translate()

This commit is contained in:
Haoyu Qiu 2025-06-10 12:05:33 +08:00
parent 1bbfe637c6
commit 4e20e33e21
4 changed files with 9 additions and 2 deletions

View file

@ -239,6 +239,12 @@
This function ensures that the calling of this function will succeed, no matter whether it's being done from a thread or not. If called from a thread that is not allowed to call the function, the call will become deferred. Otherwise, the call will go through directly.
</description>
</method>
<method name="can_auto_translate" qualifiers="const">
<return type="bool" />
<description>
Returns [code]true[/code] if this node can automatically translate messages depending on the current locale. See [member auto_translate_mode], [method atr], and [method atr_n].
</description>
</method>
<method name="can_process" qualifiers="const">
<return type="bool" />
<description>