[SR] Localize missed strings (#40824) (#40877)

* Localize missed strings

* Change to use i18n.translate to fix component prop error
This commit is contained in:
Jen Huang 2019-07-11 10:40:45 -07:00 committed by GitHub
parent ca2f2606d4
commit d920096fb9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -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) => {

View file

@ -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,