Skip to content

Commit

Permalink
Fix linting and i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
efegurkan committed Jun 12, 2023
1 parent a8d6f0d commit e71d840
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import { useValues } from 'kea';

import { EuiButtonGroup } from '@elastic/eui';

import { i18n } from '@kbn/i18n';

import { KibanaLogic } from '../../../../shared/kibana';

import { IndexViewLogic } from '../index_view_logic';
Expand All @@ -28,21 +30,33 @@ export const SyncJobs: React.FC = () => {
<>
{shouldShowAccessSyncs && (
<EuiButtonGroup
legend={'Select sync job type to display.'}
name={'Sync job type'}
legend={i18n.translate(
'xpack.enterpriseSearch.content.syncJobs.lastSync.tableSelector.legend',
{ defaultMessage: 'Select sync job type to display.' }
)}
name={i18n.translate(
'xpack.enterpriseSearch.content.syncJobs.lastSync.tableSelector.name',
{ defaultMessage: 'Sync job type' }
)}
idSelected={selectedSyncJobCategory}
onChange={(optionId) => {
setSelectedSyncJobCategory(optionId);
}}
options={[
{
id: 'content',
label: 'Content syncs',
label: i18n.translate(
'xpack.enterpriseSearch.content.syncJobs.lastSync.tableSelector.content.label',
{ defaultMessage: 'Content syncs' }
),
},

{
id: 'access_control',
label: 'Access control syncs',
label: i18n.translate(
'xpack.enterpriseSearch.content.syncJobs.lastSync.tableSelector.accessControl.label',
{ defaultMessage: 'Access control syncs' }
),
},
]}
/>
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/translations/translations/fr-FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -39672,4 +39672,4 @@
"xpack.painlessLab.title": "Painless Lab",
"xpack.painlessLab.walkthroughButtonLabel": "Présentation"
}
}
}
2 changes: 1 addition & 1 deletion x-pack/plugins/translations/translations/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -39642,4 +39642,4 @@
"xpack.painlessLab.title": "Painless Lab",
"xpack.painlessLab.walkthroughButtonLabel": "実地検証"
}
}
}
2 changes: 1 addition & 1 deletion x-pack/plugins/translations/translations/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -39636,4 +39636,4 @@
"xpack.painlessLab.title": "Painless 实验室",
"xpack.painlessLab.walkthroughButtonLabel": "指导"
}
}
}

0 comments on commit e71d840

Please sign in to comment.