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.
add_metadata_locale
add_metadata_locale(workspace_id: str, target_language: str, translator_func: Callable, set_locale: bool)
Add and optionally set the metadata localization for a workspace in a target language.
Parameters
| name | type | description |
|---|---|---|
| workspace_id | str | The ID of the workspace. |
| target_language | str | The target language for the metadata localization. |
| translator_func | Callable | A function to translate the source text. |
| set_locale | bool | Flag to indicate if the locale settings should be updated in the workspace. |
Returns
NoneExample
# 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
)