mirror of
https://github.com/apache/superset.git
synced 2026-05-10 10:25:51 +00:00
chore: Localization of superset pt. 2 (#22772)
This commit is contained in:
@@ -491,7 +491,7 @@ ColumnCollectionTable.defaultProps = {
|
||||
allowAddItem: false,
|
||||
allowEditDataType: false,
|
||||
itemGenerator: () => ({
|
||||
column_name: '<new column>',
|
||||
column_name: t('<new column>'),
|
||||
filterable: true,
|
||||
groupby: true,
|
||||
}),
|
||||
@@ -976,8 +976,8 @@ class DatasourceEditor extends React.PureComponent {
|
||||
tableColumns={['name', 'config']}
|
||||
onChange={this.onDatasourcePropChange.bind(this, 'spatials')}
|
||||
itemGenerator={() => ({
|
||||
name: '<new spatial>',
|
||||
type: '<no type>',
|
||||
name: t('<new spatial>'),
|
||||
type: t('<no type>'),
|
||||
config: null,
|
||||
})}
|
||||
collection={spatials}
|
||||
@@ -1256,7 +1256,7 @@ class DatasourceEditor extends React.PureComponent {
|
||||
allowAddItem
|
||||
onChange={this.onDatasourcePropChange.bind(this, 'metrics')}
|
||||
itemGenerator={() => ({
|
||||
metric_name: '<new metric>',
|
||||
metric_name: t('<new metric>'),
|
||||
verbose_name: '',
|
||||
expression: '',
|
||||
})}
|
||||
@@ -1418,10 +1418,10 @@ class DatasourceEditor extends React.PureComponent {
|
||||
allowAddItem
|
||||
allowEditDataType
|
||||
itemGenerator={() => ({
|
||||
column_name: '<new column>',
|
||||
column_name: t('<new column>'),
|
||||
filterable: true,
|
||||
groupby: true,
|
||||
expression: '<enter SQL expression here>',
|
||||
expression: t('<enter SQL expression here>'),
|
||||
__expanded: true,
|
||||
})}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user