CatalogWorkspaceService.

add_metadata_locale

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

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

Parameters

nametypedescription
workspace_idstrThe ID of the workspace.
target_languagestrThe 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