Skip to content

Commit

Permalink
Remove unused translations + clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Heenawter committed Jul 28, 2023
1 parent 3e9f301 commit bb9c0c4
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,6 @@ describe('Options list popover', () => {
showOnlySelectedButton.simulate('click');
};

test('available options list width responds to container size', async () => {
let popover = await mountComponent({ popoverProps: { width: 301 } });
let popoverDiv = findTestSubject(popover, 'optionsList-control-popover');
expect(popoverDiv.getDOMNode().getAttribute('style')).toBe('width: 301px; min-width: 300px;');

// the div cannot be smaller than 301 pixels wide
popover = await mountComponent({ popoverProps: { width: 300 } });
popoverDiv = findTestSubject(popover, 'optionsList-control-available-options');
expect(popoverDiv.getDOMNode().getAttribute('style')).toBe('width: 100%; height: 100%;');
});

test('no available options', async () => {
const popover = await mountComponent({ componentState: { availableOptions: [] } });
const availableOptionsDiv = findTestSubject(popover, 'optionsList-control-available-options');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

import classNames from 'classnames';
import { sortBy, uniq } from 'lodash';
import useMount from 'react-use/lib/useMount';
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';

import { i18n } from '@kbn/i18n';
Expand Down
2 changes: 0 additions & 2 deletions x-pack/plugins/translations/translations/fr-FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -4793,11 +4793,9 @@
"presentationUtil.labs.components.enabledStatusMessage": "Par défaut : {status}",
"presentationUtil.labs.components.noProjectsinSolutionMessage": "Aucun atelier actuellement dans {solutionName}.",
"presentationUtil.dashboardPicker.searchDashboardPlaceholder": "Recherche dans les tableaux de bord…",
"presentationUtil.dataViewPicker.changeDataViewTitle": "Vue de données",
"presentationUtil.fieldPicker.noFieldsLabel": "Aucun champ correspondant",
"presentationUtil.fieldPicker.selectableAriaLabel": "Sélectionner un champ",
"presentationUtil.fieldSearch.fieldFilterButtonLabel": "Filtrer par type",
"presentationUtil.fieldSearch.filterByTypeLabel": "Filtrer par type",
"presentationUtil.fieldSearch.searchPlaceHolder": "Rechercher les noms de champs",
"presentationUtil.labs.components.browserSwitchHelp": "Active l'atelier pour ce navigateur et persiste après sa fermeture.",
"presentationUtil.labs.components.browserSwitchName": "Navigateur",
Expand Down
2 changes: 0 additions & 2 deletions x-pack/plugins/translations/translations/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -4809,11 +4809,9 @@
"presentationUtil.labs.components.enabledStatusMessage": "デフォルト:{status}",
"presentationUtil.labs.components.noProjectsinSolutionMessage": "現在{solutionName}にラボはありません。",
"presentationUtil.dashboardPicker.searchDashboardPlaceholder": "ダッシュボードを検索...",
"presentationUtil.dataViewPicker.changeDataViewTitle": "データビュー",
"presentationUtil.fieldPicker.noFieldsLabel": "一致するがフィールドがありません",
"presentationUtil.fieldPicker.selectableAriaLabel": "フィールドを選択",
"presentationUtil.fieldSearch.fieldFilterButtonLabel": "タイプでフィルタリング",
"presentationUtil.fieldSearch.filterByTypeLabel": "タイプでフィルタリング",
"presentationUtil.fieldSearch.searchPlaceHolder": "検索フィールド名",
"presentationUtil.labs.components.browserSwitchHelp": "このブラウザーでラボを有効にします。ブラウザーを閉じた後も永続します。",
"presentationUtil.labs.components.browserSwitchName": "ブラウザー",
Expand Down
2 changes: 0 additions & 2 deletions x-pack/plugins/translations/translations/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -4808,11 +4808,9 @@
"presentationUtil.labs.components.enabledStatusMessage": "默认值:{status}",
"presentationUtil.labs.components.noProjectsinSolutionMessage": "{solutionName} 中当前没有实验。",
"presentationUtil.dashboardPicker.searchDashboardPlaceholder": "搜索仪表板......",
"presentationUtil.dataViewPicker.changeDataViewTitle": "数据视图",
"presentationUtil.fieldPicker.noFieldsLabel": "无匹配字段",
"presentationUtil.fieldPicker.selectableAriaLabel": "选择字段",
"presentationUtil.fieldSearch.fieldFilterButtonLabel": "按类型筛选",
"presentationUtil.fieldSearch.filterByTypeLabel": "按类型筛选",
"presentationUtil.fieldSearch.searchPlaceHolder": "搜索字段名称",
"presentationUtil.labs.components.browserSwitchHelp": "启用此浏览器的实验并在其关闭后继续保持。",
"presentationUtil.labs.components.browserSwitchName": "浏览器",
Expand Down

0 comments on commit bb9c0c4

Please sign in to comment.