This documentation is for an older version of GoodData.
Go to the latest version of this article.
catalog_workspace.
add_metadata_locale
add_metadata_locale(workspace_id: str, target_language: str, translator_func: Callable, set_locale: bool = True) -> None
Add and optionally set the metadata localization for a workspace in a target language.
Parameters
name | type | description |
---|---|---|
workspace_id | string | The ID of the workspace. |
target_language | string | 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
None
Example
# 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
)