This documentation is for an older version of GoodData.
Go to the latest version of this article.
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
name | type | description |
---|---|---|
workspace_id | string | The ID of the workspace to which the metadata localization applies. |
file_path | Path | The 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")
)