Skip to content

Commit

Permalink
Add translate to Filter ReactTable
Browse files Browse the repository at this point in the history
  • Loading branch information
hoang-rio committed Jan 9, 2019
1 parent d90da5d commit 2629442
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions client/src/__locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@
"show_all_filter_type": "Show all",
"show_filtered_type": "Show filtered",
"no_logs_found": "No logs found",
"no_filter_found": "No filter found",
"disabled_log_btn": "Disable log",
"download_log_file_btn": "Download log file",
"refresh_btn": "Refresh",
Expand Down
1 change: 1 addition & 0 deletions client/src/__locales/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
"show_all_filter_type": "Hi\u1ec7n t\u1ea5t c\u1ea3",
"show_filtered_type": "Ch\u1ec9 hi\u1ec7n \u0111\u00e3 ch\u1eb7n",
"no_logs_found": "Kh\u00f4ng c\u00f3 l\u1ecbch s\u1eed truy v\u1ea5n",
"no_filter_found": "Kh\u00f4ng c\u00f3 b\u1ed9 l\u1ecdc n\u00e0o",
"disabled_log_btn": "T\u1eaft l\u1ecbch s\u1eed truy v\u1ea5n",
"download_log_file_btn": "T\u1ea3i t\u1eadp tin l\u1ecbch s\u1eed truy v\u1ea5n",
"refresh_btn": "L\u00e0m m\u1edbi",
Expand Down
8 changes: 8 additions & 0 deletions client/src/components/Filters/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ class Filters extends Component {
defaultPageSize={10}
noDataText={ t('no_filters_added') }
minRows={4} // TODO find out what to show if rules.length is 0
// Text
previousText={ t('previous_btn') }
nextText={ t('next_btn') }
loadingText={ t('loading_table_status') }
pageText={ t('page_table_footer_text') }
ofText={ t('of_table_footer_text') }
rowsText={ t('rows_table_footer_text') }
noDataText={ t('no_filter_found') }
/>
<div className="card-actions">
<button className="btn btn-success btn-standart mr-2" type="submit" onClick={this.props.toggleFilteringModal}><Trans>add_filter_btn</Trans></button>
Expand Down

0 comments on commit 2629442

Please sign in to comment.