mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
* Localize missed strings * Change to use i18n.translate to fix component prop error
This commit is contained in:
parent
ca2f2606d4
commit
d920096fb9
2 changed files with 6 additions and 2 deletions
|
@ -270,7 +270,9 @@ export const RepositoryTable: React.FunctionComponent<Props> = ({
|
|||
{
|
||||
type: 'field_value_selection',
|
||||
field: 'type',
|
||||
name: 'Type',
|
||||
name: i18n.translate('xpack.snapshotRestore.repositoryList.table.typeFilterLabel', {
|
||||
defaultMessage: 'Type',
|
||||
}),
|
||||
multiSelect: false,
|
||||
options: Object.keys(
|
||||
repositories.reduce((typeMap: any, repository) => {
|
||||
|
|
|
@ -325,7 +325,9 @@ export const SnapshotTable: React.FunctionComponent<Props> = ({
|
|||
{
|
||||
type: 'field_value_selection',
|
||||
field: 'repository',
|
||||
name: 'Repository',
|
||||
name: i18n.translate('xpack.snapshotRestore.snapshotList.table.repositoryFilterLabel', {
|
||||
defaultMessage: 'Repository',
|
||||
}),
|
||||
multiSelect: false,
|
||||
options: repositories.map(repository => ({
|
||||
value: repository,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue