catalog_workspace.

add_metadata_locale

add_metadata_locale(workspace_id: str, target_language: str, translator_func: Callable, set_locale: bool = True) -> None

Add and optionally set the metadata localization for a workspace in a target language.

Parameters

nametypedescription
workspace_idstringThe ID of the workspace.
target_languagestringThe target language for the metadata localization.
translator_funcCallableA function to translate the source text.
set_localeboolFlag to indicate if the locale settings should be updated in the workspace.

Returns

None

Example

# Add and set the metadata localization for a workspace using a translation function.
sdk.catalog_workspace.add_metadata_locale(
    workspace_id="123",
    target_language="de-DE",
    translator_func=my_translation_function,
    set_locale=True
)