Home > @uniformdev/canvas > localize

localize() function

Localizes a composition or entry that may contain: * Structural localization with localization components (locale specific layout) * Property localization with localizable property values (translations)

The result will contain only parameters and localizations that match one of the input locales. Information for other locales will be discarded in the result.

NOTE: this function mutates its input object for maximum performance. If you desire immutability wrap it in immer.

Signature:

Parameters

<table><thead><tr><th>

Parameter

</th><th>

Type

</th><th>

Description

</th></tr></thead> <tbody><tr><td>

options

</td><td>

LocalizeModernOptions

</td><td>

</td></tr> </tbody></table> Returns:

void