Skip to content

Commit 7bd736f

Browse files
committed
unify integration type labels
1 parent 1cfffbc commit 7bd736f

File tree

5 files changed

+22
-22
lines changed

5 files changed

+22
-22
lines changed

src/notebooks/deepnote/sqlCellStatusBarProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const integrationTypeLabels: Record<ConfigurableDatabaseIntegrationType, string>
5252
redshift: l10n.t('Amazon Redshift'),
5353
snowflake: l10n.t('Snowflake'),
5454
spanner: l10n.t('Google Cloud Spanner'),
55-
'sql-server': l10n.t('SQL Server'),
55+
'sql-server': l10n.t('Microsoft SQL Server'),
5656
trino: l10n.t('Trino')
5757
};
5858

src/platform/common/utils/localize.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ export namespace Integrations {
859859
export const duckDBTypeLabel = l10n.t('DuckDB');
860860
export const redshiftTypeLabel = l10n.t('Amazon Redshift');
861861
export const spannerTypeLabel = l10n.t('Google Cloud Spanner');
862-
export const sqlServerTypeLabel = l10n.t('SQL Server');
862+
export const sqlServerTypeLabel = l10n.t('Microsoft SQL Server');
863863
export const trinoTypeLabel = l10n.t('Trino');
864864

865865
// PostgreSQL form strings

src/webviews/webview-side/integrations/IntegrationItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const getIntegrationTypeLabel = (type: ConfigurableDatabaseIntegrationType): str
4242
case 'spanner':
4343
return getLocString('integrationsSpannerTypeLabel', 'Google Cloud Spanner');
4444
case 'sql-server':
45-
return getLocString('integrationsSQLServerTypeLabel', 'SQL Server');
45+
return getLocString('integrationsSQLServerTypeLabel', 'Microsoft SQL Server');
4646
case 'trino':
4747
return getLocString('integrationsTrinoTypeLabel', 'Trino');
4848
default:

src/webviews/webview-side/integrations/IntegrationTypeSelector.tsx

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import * as React from 'react';
22
import { getLocString } from '../react-common/locReactSide';
33
import { ConfigurableDatabaseIntegrationType } from './types';
4+
import { integrationTypeLabels } from './integrationUtils';
45

56
// Import integration logos
67
/* eslint-disable @typescript-eslint/no-require-imports */
@@ -36,87 +37,87 @@ interface IntegrationTypeInfo {
3637
const INTEGRATION_TYPES: IntegrationTypeInfo[] = [
3738
{
3839
type: 'pgsql',
39-
label: 'PostgreSQL',
40+
label: integrationTypeLabels['pgsql'],
4041
icon: postgresqlLogo
4142
},
4243
{
4344
type: 'mysql',
44-
label: 'MySQL',
45+
label: integrationTypeLabels['mysql'],
4546
icon: mysqlLogo
4647
},
4748
{
4849
type: 'mariadb',
49-
label: 'MariaDB',
50+
label: integrationTypeLabels['mariadb'],
5051
icon: mariadbLogo
5152
},
5253
{
5354
type: 'mongodb',
54-
label: 'MongoDB',
55+
label: integrationTypeLabels['mongodb'],
5556
icon: mongodbLogo
5657
},
5758
{
5859
type: 'sql-server',
59-
label: 'Microsoft SQL Server',
60+
label: integrationTypeLabels['sql-server'],
6061
icon: sqlServerLogo
6162
},
6263
{
6364
type: 'big-query',
64-
label: 'Google BigQuery',
65+
label: integrationTypeLabels['big-query'],
6566
icon: bigqueryLogo
6667
},
6768
{
6869
type: 'snowflake',
69-
label: 'Snowflake',
70+
label: integrationTypeLabels['snowflake'],
7071
icon: snowflakeLogo
7172
},
7273
{
7374
type: 'alloydb',
74-
label: 'Google AlloyDB',
75+
label: integrationTypeLabels['alloydb'],
7576
icon: alloydbLogo
7677
},
7778
{
7879
type: 'spanner',
79-
label: 'Google Cloud Spanner',
80+
label: integrationTypeLabels['spanner'],
8081
icon: spannerLogo
8182
},
8283
{
8384
type: 'materialize',
84-
label: 'Materialize',
85+
label: integrationTypeLabels['materialize'],
8586
icon: materializeLogo
8687
},
8788
{
8889
type: 'clickhouse',
89-
label: 'ClickHouse',
90+
label: integrationTypeLabels['clickhouse'],
9091
icon: clickhouseLogo
9192
},
9293
{
9394
type: 'athena',
94-
label: 'Amazon Athena',
95+
label: integrationTypeLabels['athena'],
9596
icon: athenaLogo
9697
},
9798
{
9899
type: 'redshift',
99-
label: 'Amazon Redshift',
100+
label: integrationTypeLabels['redshift'],
100101
icon: redshiftLogo
101102
},
102103
{
103104
type: 'databricks',
104-
label: 'Databricks',
105+
label: integrationTypeLabels['databricks'],
105106
icon: databricksLogo
106107
},
107108
{
108109
type: 'dremio',
109-
label: 'Dremio',
110+
label: integrationTypeLabels['dremio'],
110111
icon: dremioLogo
111112
},
112113
{
113114
type: 'mindsdb',
114-
label: 'MindsDB',
115+
label: integrationTypeLabels['mindsdb'],
115116
icon: mindsdbLogo
116117
},
117118
{
118119
type: 'trino',
119-
label: 'Trino',
120+
label: integrationTypeLabels['trino'],
120121
icon: trinoLogo
121122
}
122123
];

src/webviews/webview-side/integrations/integrationUtils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const integrationTypeLabels: Record<ConfigurableDatabaseIntegrationType,
1818
redshift: 'Amazon Redshift',
1919
snowflake: 'Snowflake',
2020
spanner: 'Google Cloud Spanner',
21-
'sql-server': 'SQL Server',
21+
'sql-server': 'Microsoft SQL Server',
2222
trino: 'Trino'
2323
};
2424

@@ -31,4 +31,3 @@ export function getDefaultIntegrationName(type: ConfigurableDatabaseIntegrationT
3131
const typeLabel = integrationTypeLabels[type] || type;
3232
return getLocString('integrationsDefaultName', 'My {0} integration').replace('{0}', typeLabel);
3333
}
34-

0 commit comments

Comments
 (0)