This documentation is for the unstable version of GoodData, currrently in development.
For stable version, go to the latest stable version of this article.
For stable version, go to the latest stable version of this article.
catalog_workspace.
set_metadata_locale_from_disk
set_metadata_locale_from_disk(workspace_id: str, file_path: Path)
Load and set the metadata localization for a workspace from a file.
Parameters
| name | type | description |
|---|---|---|
| workspace_id | str | 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
NoneExample
# 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")
)