catalog_workspace.

set_metadata_locale_from_disk

set_metadata_locale_from_disk(workspace_id: str, file_path: Path) -> None

Load and set the metadata localization for a workspace from a file.

Parameters

nametypedescription
workspace_idstringThe ID of the workspace to which the metadata localization applies.
file_pathPathThe path to the file containing the encoded XML metadata.

Returns

None

Example

# Load and set the metadata localization for a workspace from a file.
from pathlib import Path

sdk.catalog_workspace.set_metadata_locale_from_disk(
    workspace_id="123",
    file_path=Path("/path/to/file.xliff")
)