diff --git a/webapp/packages/plugin-datasource-context-switch/src/ConnectionSchemaManager/ConnectionSchemaManagerBootstrap.ts b/webapp/packages/plugin-datasource-context-switch/src/ConnectionSchemaManager/ConnectionSchemaManagerBootstrap.ts index 60ab1ac4ac..4fdaed4fc9 100644 --- a/webapp/packages/plugin-datasource-context-switch/src/ConnectionSchemaManager/ConnectionSchemaManagerBootstrap.ts +++ b/webapp/packages/plugin-datasource-context-switch/src/ConnectionSchemaManager/ConnectionSchemaManagerBootstrap.ts @@ -16,6 +16,7 @@ import { serializeConnectionParam, } from '@cloudbeaver/core-connections'; import { Bootstrap, injectable } from '@cloudbeaver/core-di'; +import { LocalizationService } from '@cloudbeaver/core-localization'; import { EObjectFeature, NodeManagerUtils } from '@cloudbeaver/core-navigation-tree'; import { getCachedMapResourceLoaderState } from '@cloudbeaver/core-sdk'; import { OptionsPanelService } from '@cloudbeaver/core-ui'; @@ -51,6 +52,7 @@ export class ConnectionSchemaManagerBootstrap extends Bootstrap { private readonly containerResource: ContainerResource, private readonly menuService: MenuService, private readonly connectionsSettingsService: ConnectionsSettingsService, + private readonly localizationService: LocalizationService, ) { super(); } @@ -219,10 +221,15 @@ export class ConnectionSchemaManagerBootstrap extends Bootstrap { icon = '/icons/plugin_datasource_context_switch_database_m.svg'; } + const tooltip = this.localizationService.translate('plugin_datasource_context_switch_select_container_tooltip', undefined, { + name: connectionSchemaManagerService.currentConnection?.name, + }); + return { ...menu, icon, label, + tooltip, }; }, }); diff --git a/webapp/packages/plugin-datasource-context-switch/src/locales/en.ts b/webapp/packages/plugin-datasource-context-switch/src/locales/en.ts index 764bebd7bf..9fce7aa852 100644 --- a/webapp/packages/plugin-datasource-context-switch/src/locales/en.ts +++ b/webapp/packages/plugin-datasource-context-switch/src/locales/en.ts @@ -1,4 +1,8 @@ export default [ ['plugin_datasource_context_switch_select_connection', 'Select connection'], ['plugin_datasource_context_switch_select_container', 'Select container'], + [ + 'plugin_datasource_context_switch_select_container_tooltip', + 'The changes will be applied to all active scripts associated with a "{arg:name}" connection', + ], ]; diff --git a/webapp/packages/plugin-datasource-context-switch/src/locales/it.ts b/webapp/packages/plugin-datasource-context-switch/src/locales/it.ts index 764bebd7bf..9fce7aa852 100644 --- a/webapp/packages/plugin-datasource-context-switch/src/locales/it.ts +++ b/webapp/packages/plugin-datasource-context-switch/src/locales/it.ts @@ -1,4 +1,8 @@ export default [ ['plugin_datasource_context_switch_select_connection', 'Select connection'], ['plugin_datasource_context_switch_select_container', 'Select container'], + [ + 'plugin_datasource_context_switch_select_container_tooltip', + 'The changes will be applied to all active scripts associated with a "{arg:name}" connection', + ], ]; diff --git a/webapp/packages/plugin-datasource-context-switch/src/locales/ru.ts b/webapp/packages/plugin-datasource-context-switch/src/locales/ru.ts index fda41681df..5219ec8740 100644 --- a/webapp/packages/plugin-datasource-context-switch/src/locales/ru.ts +++ b/webapp/packages/plugin-datasource-context-switch/src/locales/ru.ts @@ -1,4 +1,8 @@ export default [ ['plugin_datasource_context_switch_select_connection', 'Выбрать подключение'], ['plugin_datasource_context_switch_select_container', 'Выбрать контейнер'], + [ + 'plugin_datasource_context_switch_select_container_tooltip', + 'Изменения будут применены ко всем активным скриптам, связанным с "{arg:name}" подключением', + ], ]; diff --git a/webapp/packages/plugin-datasource-context-switch/src/locales/zh.ts b/webapp/packages/plugin-datasource-context-switch/src/locales/zh.ts index 764bebd7bf..9fce7aa852 100644 --- a/webapp/packages/plugin-datasource-context-switch/src/locales/zh.ts +++ b/webapp/packages/plugin-datasource-context-switch/src/locales/zh.ts @@ -1,4 +1,8 @@ export default [ ['plugin_datasource_context_switch_select_connection', 'Select connection'], ['plugin_datasource_context_switch_select_container', 'Select container'], + [ + 'plugin_datasource_context_switch_select_container_tooltip', + 'The changes will be applied to all active scripts associated with a "{arg:name}" connection', + ], ];