1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00

Merge pull request #98972 from dbnicholson/standardize-add-defaults

Expose `TranslationServer::standardize_locale` `add_default` param publicly
This commit is contained in:
Thaddeus Crews
2024-11-21 17:57:01 -06:00
6 changed files with 90 additions and 6 deletions

View File

@@ -160,8 +160,9 @@
<method name="standardize_locale" qualifiers="const">
<return type="String" />
<param index="0" name="locale" type="String" />
<param index="1" name="add_defaults" type="bool" default="false" />
<description>
Returns a [param locale] string standardized to match known locales (e.g. [code]en-US[/code] would be matched to [code]en_US[/code]).
Returns a [param locale] string standardized to match known locales (e.g. [code]en-US[/code] would be matched to [code]en_US[/code]). If [param add_defaults] is [code]true[/code], the locale may have a default script or country added.
</description>
</method>
<method name="translate" qualifiers="const">