diff --git a/superset-frontend/spec/javascripts/explore/components/SelectControl_spec.jsx b/superset-frontend/spec/javascripts/explore/components/SelectControl_spec.jsx index 35a0fccab8..2c76ce4773 100644 --- a/superset-frontend/spec/javascripts/explore/components/SelectControl_spec.jsx +++ b/superset-frontend/spec/javascripts/explore/components/SelectControl_spec.jsx @@ -78,7 +78,7 @@ describe('SelectControl', () => { onChange: sinon.spy(), }; wrapper.setProps(selectAllProps); - wrapper.instance().onChange([{ meta: true, value: 'Select All' }]); + wrapper.instance().onChange([{ meta: true, value: 'Select all' }]); expect(selectAllProps.onChange.calledWith(expectedValues)).toBe(true); }); @@ -207,7 +207,7 @@ describe('SelectControl', () => { expect(wrapper.instance().optionsRemaining()).toEqual(2); }); }); - describe('with Select All', () => { + describe('with Select all', () => { it('does not count it', () => { const props = { ...defaultProps, multi: true, allowAll: true }; const wrapper = mount(); @@ -234,9 +234,9 @@ describe('SelectControl', () => { }; wrapper.setProps(selectAllProps); expect(wrapper.instance().getOptions(selectAllProps)).toContainEqual({ - label: 'Select All', + label: 'Select all', meta: true, - value: 'Select All', + value: 'Select all', }); }); diff --git a/superset-frontend/src/explore/components/controls/DateFilterControl/frame/AdvancedFrame.tsx b/superset-frontend/src/explore/components/controls/DateFilterControl/frame/AdvancedFrame.tsx index 93ce72f4d8..39a695c2c8 100644 --- a/superset-frontend/src/explore/components/controls/DateFilterControl/frame/AdvancedFrame.tsx +++ b/superset-frontend/src/explore/components/controls/DateFilterControl/frame/AdvancedFrame.tsx @@ -48,7 +48,7 @@ export function AdvancedFrame(props: FrameComponentProps) { return ( <> -
{t('Configure Advanced Time Range')}
+
{t('Configure advanced time range')}
{t('START')}
-
{t('Configure Custom Time Range')}
+
{t('Configure custom time range')}
{t('START')}
@@ -226,7 +226,7 @@ export function CustomFrame(props: FrameComponentProps) {
{sinceMode === 'relative' && untilMode === 'relative' && (
-
{t('ANCHOR TO')}
+
{t('Anchor to')}
= 0 && this.formRow( - 'Time Lag', + 'Time lag', 'Number of periods to compare against', 'time-lag', = 0 && this.formRow( - 'Time Ratio', + 'Time ratio', 'Number of periods to ratio against', 'time-ratio', {t('Rolling Window')}], + [

{t('Rolling window')}

], [ { name: 'rolling_type', config: { type: 'SelectControl', - label: t('Rolling Function'), + label: t('Rolling function'), default: 'None', choices: formatSelectOptions([ 'None', @@ -185,7 +185,7 @@ export const NVD3TimeSeries = [ name: 'min_periods', config: { type: 'TextControl', - label: t('Min Periods'), + label: t('Min periods'), isInt: true, description: t( 'The minimum number of rolling periods required to show ' + @@ -197,7 +197,7 @@ export const NVD3TimeSeries = [ }, }, ], - [

{t('Time Comparison')}

], + [

{t('Time comparison')}

], [ { name: 'time_compare', @@ -205,7 +205,7 @@ export const NVD3TimeSeries = [ type: 'SelectControl', multi: true, freeForm: true, - label: t('Time Shift'), + label: t('Time shift'), choices: formatSelectOptions([ '1 day', '1 week', @@ -231,7 +231,7 @@ export const NVD3TimeSeries = [ label: t('Calculation type'), default: 'values', choices: [ - ['values', 'Actual Values'], + ['values', 'Actual values'], ['absolute', 'Absolute difference'], ['percentage', 'Percentage change'], ['ratio', 'Ratio'], @@ -244,7 +244,7 @@ export const NVD3TimeSeries = [ }, }, ], - [

{t('Python Functions')}

], + [

{t('Python functions')}

], // eslint-disable-next-line jsx-a11y/heading-has-content [

pandas.resample

], [ diff --git a/superset-frontend/src/filters/components/Range/index.ts b/superset-frontend/src/filters/components/Range/index.ts index 4a77fbb97c..73fbfa7f6b 100644 --- a/superset-frontend/src/filters/components/Range/index.ts +++ b/superset-frontend/src/filters/components/Range/index.ts @@ -25,8 +25,8 @@ import thumbnail from './images/thumbnail.png'; export default class AntdRangeFilterPlugin extends ChartPlugin { constructor() { const metadata = new ChartMetadata({ - name: t('Range Filter Plugin'), - description: 'Range Filter Plugin using AntD', + name: t('Range filter plugin'), + description: 'Range filter plugin using AntD', isNativeFilter: true, thumbnail, }); diff --git a/superset-frontend/src/filters/components/Select/controlPanel.ts b/superset-frontend/src/filters/components/Select/controlPanel.ts index 2432396ca2..22ef1b2391 100644 --- a/superset-frontend/src/filters/components/Select/controlPanel.ts +++ b/superset-frontend/src/filters/components/Select/controlPanel.ts @@ -44,7 +44,7 @@ const config: ControlPanelConfig = { name: 'multiSelect', config: { type: 'CheckboxControl', - label: t('Multiple Select'), + label: t('Multiple select'), default: multiSelect, description: t('Allow selecting multiple values'), }, @@ -55,7 +55,7 @@ const config: ControlPanelConfig = { name: 'enableEmptyFilter', config: { type: 'CheckboxControl', - label: t('Enable Empty Filter'), + label: t('Enable empty filter'), default: enableEmptyFilter, description: t( 'When selection is empty, should an always false filter event be emitted', @@ -68,7 +68,7 @@ const config: ControlPanelConfig = { name: 'inverseSelection', config: { type: 'CheckboxControl', - label: t('Inverse Selection'), + label: t('Inverse selection'), default: inverseSelection, description: t('Exclude selected values'), }, @@ -79,7 +79,7 @@ const config: ControlPanelConfig = { name: 'showSearch', config: { type: 'CheckboxControl', - label: t('Search Field'), + label: t('Search field'), default: showSearch, description: t('Allow typing search terms'), },