You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by st...@apache.org on 2022/10/19 01:54:30 UTC

[superset] branch master updated: chore: Added translate functions (#21816)

This is an automated email from the ASF dual-hosted git repository.

stephenlyz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new df7840c041 chore: Added translate functions (#21816)
df7840c041 is described below

commit df7840c041806934ec9e52d95988c5ff765f8718
Author: Andrew <89...@users.noreply.github.com>
AuthorDate: Wed Oct 19 04:54:16 2022 +0300

    chore: Added translate functions (#21816)
---
 .../src/sections/advancedAnalytics.tsx             | 16 +++++++--------
 .../src/sections/echartsTimeSeriesQuery.tsx        |  6 +++---
 .../src/sections/forecastInterval.tsx              | 24 +++++++++++-----------
 .../src/controlPanel.tsx                           |  8 ++++----
 .../legacy-preset-chart-nvd3/src/NVD3Controls.tsx  |  8 ++++----
 .../src/vendor/superset/AnnotationTypes.js         | 10 +++++----
 .../BigNumberWithTrendline/controlPanel.tsx        | 16 +++++++--------
 .../plugins/plugin-chart-echarts/src/controls.tsx  | 16 +++++++--------
 .../plugin-chart-handlebars/src/plugin/index.ts    |  2 +-
 .../src/components/Datasource/DatasourceModal.tsx  |  2 +-
 .../src/components/TableSelector/index.tsx         |  2 +-
 .../dashboard/components/PropertiesModal/index.tsx |  4 ++--
 .../src/dashboard/components/SliceAdder.jsx        |  8 ++++----
 .../explore/components/ControlPanelsContainer.tsx  |  2 +-
 .../explore/components/PropertiesModal/index.tsx   |  4 ++--
 .../AnnotationLayerControl/AnnotationLayer.jsx     | 24 +++++++++++-----------
 .../FormattingPopoverContent.tsx                   |  2 +-
 superset-frontend/src/modules/AnnotationTypes.js   | 10 +++++----
 .../src/views/CRUD/data/database/DatabaseList.tsx  | 12 +++++------
 .../data/database/DatabaseModal/ModalHeader.tsx    |  7 ++++---
 .../src/views/CRUD/welcome/Welcome.tsx             |  2 +-
 21 files changed, 95 insertions(+), 90 deletions(-)

diff --git a/superset-frontend/packages/superset-ui-chart-controls/src/sections/advancedAnalytics.tsx b/superset-frontend/packages/superset-ui-chart-controls/src/sections/advancedAnalytics.tsx
index 15733fdbf5..c67018f1fe 100644
--- a/superset-frontend/packages/superset-ui-chart-controls/src/sections/advancedAnalytics.tsx
+++ b/superset-frontend/packages/superset-ui-chart-controls/src/sections/advancedAnalytics.tsx
@@ -181,14 +181,14 @@ export const advancedAnalyticsControls: ControlPanelSectionConfig = {
           label: t('Fill method'),
           default: null,
           choices: [
-            ['asfreq', 'Null imputation'],
-            ['zerofill', 'Zero imputation'],
-            ['linear', 'Linear interpolation'],
-            ['ffill', 'Forward values'],
-            ['bfill', 'Backward values'],
-            ['median', 'Median values'],
-            ['mean', 'Mean values'],
-            ['sum', 'Sum values'],
+            ['asfreq', t('Null imputation')],
+            ['zerofill', t('Zero imputation')],
+            ['linear', t('Linear interpolation')],
+            ['ffill', t('Forward values')],
+            ['bfill', t('Backward values')],
+            ['median', t('Median values')],
+            ['mean', t('Mean values')],
+            ['sum', t('Sum values')],
           ],
           description: t('Pandas resample method'),
         },
diff --git a/superset-frontend/packages/superset-ui-chart-controls/src/sections/echartsTimeSeriesQuery.tsx b/superset-frontend/packages/superset-ui-chart-controls/src/sections/echartsTimeSeriesQuery.tsx
index ac947abede..9d1c52433f 100644
--- a/superset-frontend/packages/superset-ui-chart-controls/src/sections/echartsTimeSeriesQuery.tsx
+++ b/superset-frontend/packages/superset-ui-chart-controls/src/sections/echartsTimeSeriesQuery.tsx
@@ -36,9 +36,9 @@ export const echartsTimeSeriesQuery: ControlPanelSectionConfig = {
           label: t('Contribution Mode'),
           default: null,
           choices: [
-            [null, 'None'],
-            [ContributionType.Row, 'Row'],
-            [ContributionType.Column, 'Series'],
+            [null, t('None')],
+            [ContributionType.Row, t('Row')],
+            [ContributionType.Column, t('Series')],
           ],
           description: t('Calculate contribution per series or row'),
         },
diff --git a/superset-frontend/packages/superset-ui-chart-controls/src/sections/forecastInterval.tsx b/superset-frontend/packages/superset-ui-chart-controls/src/sections/forecastInterval.tsx
index 527bd38540..1dff19b83c 100644
--- a/superset-frontend/packages/superset-ui-chart-controls/src/sections/forecastInterval.tsx
+++ b/superset-frontend/packages/superset-ui-chart-controls/src/sections/forecastInterval.tsx
@@ -82,11 +82,11 @@ export const forecastIntervalControls: ControlPanelSectionConfig = {
         config: {
           type: 'SelectControl',
           freeForm: true,
-          label: 'Yearly seasonality',
+          label: t('Yearly seasonality'),
           choices: [
-            [null, 'default'],
-            [true, 'Yes'],
-            [false, 'No'],
+            [null, t('default')],
+            [true, t('Yes')],
+            [false, t('No')],
           ],
           default: FORECAST_DEFAULT_DATA.forecastSeasonalityYearly,
           description: t(
@@ -101,11 +101,11 @@ export const forecastIntervalControls: ControlPanelSectionConfig = {
         config: {
           type: 'SelectControl',
           freeForm: true,
-          label: 'Weekly seasonality',
+          label: t('Weekly seasonality'),
           choices: [
-            [null, 'default'],
-            [true, 'Yes'],
-            [false, 'No'],
+            [null, t('default')],
+            [true, t('Yes')],
+            [false, t('No')],
           ],
           default: FORECAST_DEFAULT_DATA.forecastSeasonalityWeekly,
           description: t(
@@ -120,11 +120,11 @@ export const forecastIntervalControls: ControlPanelSectionConfig = {
         config: {
           type: 'SelectControl',
           freeForm: true,
-          label: 'Daily seasonality',
+          label: t('Daily seasonality'),
           choices: [
-            [null, 'default'],
-            [true, 'Yes'],
-            [false, 'No'],
+            [null, t('default')],
+            [true, t('Yes')],
+            [false, t('No')],
           ],
           default: FORECAST_DEFAULT_DATA.forecastSeasonalityDaily,
           description: t(
diff --git a/superset-frontend/plugins/legacy-plugin-chart-partition/src/controlPanel.tsx b/superset-frontend/plugins/legacy-plugin-chart-partition/src/controlPanel.tsx
index 2f16aca9af..ab1f8dfba6 100644
--- a/superset-frontend/plugins/legacy-plugin-chart-partition/src/controlPanel.tsx
+++ b/superset-frontend/plugins/legacy-plugin-chart-partition/src/controlPanel.tsx
@@ -330,10 +330,10 @@ const config: ControlPanelConfig = {
               label: t('Calculation type'),
               default: 'values',
               choices: [
-                ['values', 'Actual Values'],
-                ['absolute', 'Difference'],
-                ['percentage', 'Percentage change'],
-                ['ratio', 'Ratio'],
+                ['values', t('Actual Values')],
+                ['absolute', t('Difference')],
+                ['percentage', t('Percentage change')],
+                ['ratio', t('Ratio')],
               ],
               description: t(
                 'How to display time shifts: as individual lines; as the ' +
diff --git a/superset-frontend/plugins/legacy-preset-chart-nvd3/src/NVD3Controls.tsx b/superset-frontend/plugins/legacy-preset-chart-nvd3/src/NVD3Controls.tsx
index 3b53b2add0..4532da9574 100644
--- a/superset-frontend/plugins/legacy-preset-chart-nvd3/src/NVD3Controls.tsx
+++ b/superset-frontend/plugins/legacy-preset-chart-nvd3/src/NVD3Controls.tsx
@@ -461,10 +461,10 @@ export const timeSeriesSection: ControlPanelSectionConfig[] = [
             label: t('Calculation type'),
             default: 'values',
             choices: [
-              ['values', 'Actual Values'],
-              ['absolute', 'Difference'],
-              ['percentage', 'Percentage change'],
-              ['ratio', 'Ratio'],
+              ['values', t('Actual Values')],
+              ['absolute', t('Difference')],
+              ['percentage', t('Percentage change')],
+              ['ratio', t('Ratio')],
             ],
             description: t(
               'How to display time shifts: as individual lines; as the ' +
diff --git a/superset-frontend/plugins/legacy-preset-chart-nvd3/src/vendor/superset/AnnotationTypes.js b/superset-frontend/plugins/legacy-preset-chart-nvd3/src/vendor/superset/AnnotationTypes.js
index 384c29b304..6a91617c5a 100644
--- a/superset-frontend/plugins/legacy-preset-chart-nvd3/src/vendor/superset/AnnotationTypes.js
+++ b/superset-frontend/plugins/legacy-preset-chart-nvd3/src/vendor/superset/AnnotationTypes.js
@@ -16,6 +16,8 @@
  * specific language governing permissions and limitations
  * under the License.
  */
+import { t } from '@superset-ui/core';
+
 function extractTypes(metadata) {
   return Object.keys(metadata).reduce((prev, key) => {
     const result = prev;
@@ -28,21 +30,21 @@ function extractTypes(metadata) {
 export const ANNOTATION_TYPES_METADATA = {
   FORMULA: {
     value: 'FORMULA',
-    label: 'Formula',
+    label: t('Formula'),
   },
   EVENT: {
     value: 'EVENT',
-    label: 'Event',
+    label: t('Event'),
     supportNativeSource: true,
   },
   INTERVAL: {
     value: 'INTERVAL',
-    label: 'Interval',
+    label: t('Interval'),
     supportNativeSource: true,
   },
   TIME_SERIES: {
     value: 'TIME_SERIES',
-    label: 'Time Series',
+    label: t('Time Series'),
   },
 };
 
diff --git a/superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberWithTrendline/controlPanel.tsx b/superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberWithTrendline/controlPanel.tsx
index 71414105ad..b142dd1852 100644
--- a/superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberWithTrendline/controlPanel.tsx
+++ b/superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberWithTrendline/controlPanel.tsx
@@ -256,14 +256,14 @@ const config: ControlPanelConfig = {
               label: t('Fill method'),
               default: null,
               choices: [
-                ['asfreq', 'Null imputation'],
-                ['zerofill', 'Zero imputation'],
-                ['linear', 'Linear interpolation'],
-                ['ffill', 'Forward values'],
-                ['bfill', 'Backward values'],
-                ['median', 'Median values'],
-                ['mean', 'Mean values'],
-                ['sum', 'Sum values'],
+                ['asfreq', t('Null imputation')],
+                ['zerofill', t('Zero imputation')],
+                ['linear', t('Linear interpolation')],
+                ['ffill', t('Forward values')],
+                ['bfill', t('Backward values')],
+                ['median', t('Median values')],
+                ['mean', t('Mean values')],
+                ['sum', t('Sum values')],
               ],
               description: t('Pandas resample method'),
             },
diff --git a/superset-frontend/plugins/plugin-chart-echarts/src/controls.tsx b/superset-frontend/plugins/plugin-chart-echarts/src/controls.tsx
index f6e8113439..ff74cd171d 100644
--- a/superset-frontend/plugins/plugin-chart-echarts/src/controls.tsx
+++ b/superset-frontend/plugins/plugin-chart-echarts/src/controls.tsx
@@ -60,10 +60,10 @@ const legendTypeControl: ControlSetItem = {
   config: {
     type: 'SelectControl',
     freeForm: false,
-    label: 'Type',
+    label: t('Type'),
     choices: [
-      ['scroll', 'Scroll'],
-      ['plain', 'Plain'],
+      ['scroll', t('Scroll')],
+      ['plain', t('Plain')],
     ],
     default: legendType,
     renderTrigger: true,
@@ -78,12 +78,12 @@ const legendOrientationControl: ControlSetItem = {
   config: {
     type: 'SelectControl',
     freeForm: false,
-    label: 'Orientation',
+    label: t('Orientation'),
     choices: [
-      ['top', 'Top'],
-      ['bottom', 'Bottom'],
-      ['left', 'Left'],
-      ['right', 'Right'],
+      ['top', t('Top')],
+      ['bottom', t('Bottom')],
+      ['left', t('Left')],
+      ['right', t('Right')],
     ],
     default: legendOrientation,
     renderTrigger: true,
diff --git a/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/index.ts b/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/index.ts
index db5ad528f8..48e2d5d904 100644
--- a/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/index.ts
+++ b/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/index.ts
@@ -35,7 +35,7 @@ export default class HandlebarsChartPlugin extends ChartPlugin {
    */
   constructor() {
     const metadata = new ChartMetadata({
-      description: 'Write a handlebars template to render the data',
+      description: t('Write a handlebars template to render the data'),
       name: t('Handlebars'),
       thumbnail,
     });
diff --git a/superset-frontend/src/components/Datasource/DatasourceModal.tsx b/superset-frontend/src/components/Datasource/DatasourceModal.tsx
index 98f2e561db..726cfaf615 100644
--- a/superset-frontend/src/components/Datasource/DatasourceModal.tsx
+++ b/superset-frontend/src/components/Datasource/DatasourceModal.tsx
@@ -133,7 +133,7 @@ const DatasourceModal: FunctionComponent<DatasourceModalProps> = ({
         setIsSaving(false);
         getClientErrorObject(response).then(({ error }) => {
           modal.error({
-            title: 'Error',
+            title: t('Error'),
             content: error || t('An error has occurred'),
             okButtonProps: { danger: true, className: 'btn-danger' },
           });
diff --git a/superset-frontend/src/components/TableSelector/index.tsx b/superset-frontend/src/components/TableSelector/index.tsx
index 06e42c3bad..a0f6e5366b 100644
--- a/superset-frontend/src/components/TableSelector/index.tsx
+++ b/superset-frontend/src/components/TableSelector/index.tsx
@@ -184,7 +184,7 @@ const TableSelector: FunctionComponent<TableSelectorProps> = ({
     onSuccess: (data: { options: Table[] }) => {
       onTablesLoad?.(data.options);
       if (isFetched) {
-        addSuccessToast('List updated');
+        addSuccessToast(t('List updated'));
       }
     },
     onError: () => handleError(t('There was an error loading the tables')),
diff --git a/superset-frontend/src/dashboard/components/PropertiesModal/index.tsx b/superset-frontend/src/dashboard/components/PropertiesModal/index.tsx
index d98daadff9..59eca18408 100644
--- a/superset-frontend/src/dashboard/components/PropertiesModal/index.tsx
+++ b/superset-frontend/src/dashboard/components/PropertiesModal/index.tsx
@@ -117,7 +117,7 @@ const PropertiesModal = ({
     }
 
     Modal.error({
-      title: 'Error',
+      title: t('Error'),
       content: errorText,
       okButtonProps: { danger: true, className: 'btn-danger' },
     });
@@ -276,7 +276,7 @@ const PropertiesModal = ({
     // only fire if the color_scheme is present and invalid
     if (colorScheme && !colorChoices.includes(colorScheme)) {
       Modal.error({
-        title: 'Error',
+        title: t('Error'),
         content: t('A valid color scheme is required'),
         okButtonProps: { danger: true, className: 'btn-danger' },
       });
diff --git a/superset-frontend/src/dashboard/components/SliceAdder.jsx b/superset-frontend/src/dashboard/components/SliceAdder.jsx
index 0766bd11f1..8a6368f388 100644
--- a/superset-frontend/src/dashboard/components/SliceAdder.jsx
+++ b/superset-frontend/src/dashboard/components/SliceAdder.jsx
@@ -72,10 +72,10 @@ const defaultProps = {
 
 const KEYS_TO_FILTERS = ['slice_name', 'viz_type', 'datasource_name'];
 const KEYS_TO_SORT = {
-  slice_name: 'name',
-  viz_type: 'viz type',
-  datasource_name: 'dataset',
-  changed_on: 'recent',
+  slice_name: t('name'),
+  viz_type: t('viz type'),
+  datasource_name: t('dataset'),
+  changed_on: t('recent'),
 };
 
 const DEFAULT_SORT_KEY = 'changed_on';
diff --git a/superset-frontend/src/explore/components/ControlPanelsContainer.tsx b/superset-frontend/src/explore/components/ControlPanelsContainer.tsx
index d14974a9b6..bbf59a60be 100644
--- a/superset-frontend/src/explore/components/ControlPanelsContainer.tsx
+++ b/superset-frontend/src/explore/components/ControlPanelsContainer.tsx
@@ -451,7 +451,7 @@ export const ControlPanelsContainer = (props: ControlPanelsContainerProps) => {
         {hasErrors && (
           <Tooltip
             id={`${kebabCase('validation-errors')}-tooltip`}
-            title="This section contains validation errors"
+            title={t('This section contains validation errors')}
           >
             <Icons.InfoCircleOutlined
               css={css`
diff --git a/superset-frontend/src/explore/components/PropertiesModal/index.tsx b/superset-frontend/src/explore/components/PropertiesModal/index.tsx
index de04400560..53bcfe77c3 100644
--- a/superset-frontend/src/explore/components/PropertiesModal/index.tsx
+++ b/superset-frontend/src/explore/components/PropertiesModal/index.tsx
@@ -69,7 +69,7 @@ function PropertiesModal({
       errorText = t('You do not have permission to edit this chart');
     }
     Modal.error({
-      title: 'Error',
+      title: t('Error'),
       content: errorText,
       okButtonProps: { danger: true, className: 'btn-danger' },
     });
@@ -187,7 +187,7 @@ function PropertiesModal({
     <Modal
       show={show}
       onHide={onHide}
-      title="Edit Chart Properties"
+      title={t('Edit Chart Properties')}
       footer={
         <>
           <Button
diff --git a/superset-frontend/src/explore/components/controls/AnnotationLayerControl/AnnotationLayer.jsx b/superset-frontend/src/explore/components/controls/AnnotationLayerControl/AnnotationLayer.jsx
index 8df36c1291..64d09364f6 100644
--- a/superset-frontend/src/explore/components/controls/AnnotationLayerControl/AnnotationLayer.jsx
+++ b/superset-frontend/src/explore/components/controls/AnnotationLayerControl/AnnotationLayer.jsx
@@ -413,8 +413,8 @@ class AnnotationLayer extends React.PureComponent {
     let description = '';
     if (requiresQuery(sourceType)) {
       if (sourceType === ANNOTATION_SOURCE_TYPES.NATIVE) {
-        label = 'Annotation layer';
-        description = 'Select the Annotation Layer you would like to use.';
+        label = t('Annotation layer');
+        description = t('Select the Annotation Layer you would like to use.');
       } else {
         label = t('Chart');
         description = t(
@@ -426,10 +426,10 @@ class AnnotationLayer extends React.PureComponent {
         );
       }
     } else if (annotationType === ANNOTATION_TYPES.FORMULA) {
-      label = 'Formula';
-      description = `Expects a formula with depending time parameter 'x'
+      label = t('Formula');
+      description = t(`Expects a formula with depending time parameter 'x'
         in milliseconds since epoch. mathjs is used to evaluate the formulas.
-        Example: '2x+5'`;
+        Example: '2x+5'`);
     }
     if (requiresQuery(sourceType)) {
       return (
@@ -464,7 +464,7 @@ class AnnotationLayer extends React.PureComponent {
           onChange={this.handleValue}
           validationErrors={
             !this.isValidFormulaAnnotation(value, annotationType)
-              ? ['Bad formula.']
+              ? [t('Bad formula.')]
               : []
           }
         />
@@ -656,10 +656,10 @@ class AnnotationLayer extends React.PureComponent {
           label={t('Style')}
           // see '../../../visualizations/nvd3_vis.css'
           options={[
-            { value: 'solid', label: 'Solid' },
-            { value: 'dashed', label: 'Dashed' },
-            { value: 'longDashed', label: 'Long dashed' },
-            { value: 'dotted', label: 'Dotted' },
+            { value: 'solid', label: t('Solid') },
+            { value: 'dashed', label: t('Dashed') },
+            { value: 'longDashed', label: t('Long dashed') },
+            { value: 'dotted', label: t('Dotted') },
           ]}
           value={style}
           clearable={false}
@@ -671,7 +671,7 @@ class AnnotationLayer extends React.PureComponent {
           label={t('Opacity')}
           // see '../../../visualizations/nvd3_vis.css'
           options={[
-            { value: '', label: 'Solid' },
+            { value: '', label: t('Solid') },
             { value: 'opacityLow', label: '0.2' },
             { value: 'opacityMedium', label: '0.5' },
             { value: 'opacityHigh', label: '0.8' },
@@ -693,7 +693,7 @@ class AnnotationLayer extends React.PureComponent {
               buttonSize="xsmall"
               onClick={() => this.setState({ color: AUTOMATIC_COLOR })}
             >
-              Automatic Color
+              {t('Automatic Color')}
             </Button>
           </div>
         </div>
diff --git a/superset-frontend/src/explore/components/controls/ConditionalFormattingControl/FormattingPopoverContent.tsx b/superset-frontend/src/explore/components/controls/ConditionalFormattingControl/FormattingPopoverContent.tsx
index b32ca5f216..d50e71608b 100644
--- a/superset-frontend/src/explore/components/controls/ConditionalFormattingControl/FormattingPopoverContent.tsx
+++ b/superset-frontend/src/explore/components/controls/ConditionalFormattingControl/FormattingPopoverContent.tsx
@@ -45,7 +45,7 @@ const colorSchemeOptions = (theme: SupersetTheme) => [
 ];
 
 const operatorOptions = [
-  { value: COMPARATOR.NONE, label: 'None' },
+  { value: COMPARATOR.NONE, label: t('None') },
   { value: COMPARATOR.GREATER_THAN, label: '>' },
   { value: COMPARATOR.LESS_THAN, label: '<' },
   { value: COMPARATOR.GREATER_OR_EQUAL, label: '≥' },
diff --git a/superset-frontend/src/modules/AnnotationTypes.js b/superset-frontend/src/modules/AnnotationTypes.js
index 1f8556114d..cdf7a161f7 100644
--- a/superset-frontend/src/modules/AnnotationTypes.js
+++ b/superset-frontend/src/modules/AnnotationTypes.js
@@ -16,6 +16,8 @@
  * specific language governing permissions and limitations
  * under the License.
  */
+import { t } from '@superset-ui/core';
+
 function extractTypes(metadata) {
   return Object.keys(metadata).reduce((prev, key) => {
     const result = prev;
@@ -27,21 +29,21 @@ function extractTypes(metadata) {
 export const ANNOTATION_TYPES_METADATA = {
   FORMULA: {
     value: 'FORMULA',
-    label: 'Formula',
+    label: t('Formula'),
   },
   EVENT: {
     value: 'EVENT',
-    label: 'Event',
+    label: t('Event'),
     supportNativeSource: true,
   },
   INTERVAL: {
     value: 'INTERVAL',
-    label: 'Interval',
+    label: t('Interval'),
     supportNativeSource: true,
   },
   TIME_SERIES: {
     value: 'TIME_SERIES',
-    label: 'Time series',
+    label: t('Time series'),
   },
 };
 
diff --git a/superset-frontend/src/views/CRUD/data/database/DatabaseList.tsx b/superset-frontend/src/views/CRUD/data/database/DatabaseList.tsx
index 666c6e2410..2e25a682ba 100644
--- a/superset-frontend/src/views/CRUD/data/database/DatabaseList.tsx
+++ b/superset-frontend/src/views/CRUD/data/database/DatabaseList.tsx
@@ -458,10 +458,10 @@ function DatabaseList({ addDangerToast, addSuccessToast }: DatabaseListProps) {
         id: 'expose_in_sqllab',
         input: 'select',
         operator: FilterOperator.equals,
-        unfilteredLabel: 'All',
+        unfilteredLabel: t('All'),
         selects: [
-          { label: 'Yes', value: true },
-          { label: 'No', value: false },
+          { label: t('Yes'), value: true },
+          { label: t('No'), value: false },
         ],
       },
       {
@@ -477,10 +477,10 @@ function DatabaseList({ addDangerToast, addSuccessToast }: DatabaseListProps) {
         id: 'allow_run_async',
         input: 'select',
         operator: FilterOperator.equals,
-        unfilteredLabel: 'All',
+        unfilteredLabel: t('All'),
         selects: [
-          { label: 'Yes', value: true },
-          { label: 'No', value: false },
+          { label: t('Yes'), value: true },
+          { label: t('No'), value: false },
         ],
       },
       {
diff --git a/superset-frontend/src/views/CRUD/data/database/DatabaseModal/ModalHeader.tsx b/superset-frontend/src/views/CRUD/data/database/DatabaseModal/ModalHeader.tsx
index 73c9dc4514..6947ea2808 100644
--- a/superset-frontend/src/views/CRUD/data/database/DatabaseModal/ModalHeader.tsx
+++ b/superset-frontend/src/views/CRUD/data/database/DatabaseModal/ModalHeader.tsx
@@ -20,6 +20,7 @@
 import React from 'react';
 import { getDatabaseDocumentationLinks } from 'src/views/CRUD/hooks';
 import { UploadFile } from 'antd/lib/upload/interface';
+import { t } from '@superset-ui/core';
 import {
   EditHeaderTitle,
   EditHeaderSubtitle,
@@ -110,8 +111,8 @@ const ModalHeader = ({
         <p className="helper-top"> STEP 3 OF 3 </p>
         <h4 className="step-3-text">Database connected</h4>
         <p className="subheader-text">
-          Create a dataset to begin visualizing your data as a chart or go to
-          SQL Lab to query your data.
+          {t(`Create a dataset to begin visualizing your data as a chart or go to
+          SQL Lab to query your data.`)}
         </p>
       </StyledFormHeader>
     </StyledStickyHeader>
@@ -140,7 +141,7 @@ const ModalHeader = ({
     <StyledFormHeader>
       <div className="select-db">
         <p className="helper-top"> STEP 1 OF 3 </p>
-        <h4>Select a database to connect</h4>
+        <h4>{t('Select a database to connect')}</h4>
       </div>
     </StyledFormHeader>
   );
diff --git a/superset-frontend/src/views/CRUD/welcome/Welcome.tsx b/superset-frontend/src/views/CRUD/welcome/Welcome.tsx
index ddbd0b26d3..42ed42a238 100644
--- a/superset-frontend/src/views/CRUD/welcome/Welcome.tsx
+++ b/superset-frontend/src/views/CRUD/welcome/Welcome.tsx
@@ -292,7 +292,7 @@ function Welcome({ user, addDangerToast }: WelcomeProps) {
       {(!WelcomeTopExtension || !WelcomeMainExtension) && (
         <>
           <WelcomeNav>
-            <h1 className="welcome-header">Home</h1>
+            <h1 className="welcome-header">{t('Home')}</h1>
             {isFeatureEnabled(FeatureFlag.THUMBNAILS) ? (
               <div className="switch">
                 <AntdSwitch checked={checked} onChange={handleToggle} />