Web: People: translated existing words in current version, Paging [EN]

This commit is contained in:
Daniil Senkiv 2019-08-15 18:49:25 +03:00
parent 28fc76ded9
commit b6f83d8d7c
3 changed files with 9 additions and 3 deletions

View File

@ -0,0 +1,4 @@
{
"PreviousPage": "Previous",
"NextPage": "Next"
}

View File

@ -2,6 +2,7 @@ import React, { useCallback, useMemo } from "react";
import { connect } from "react-redux";
import { fetchPeople } from "../../../../../store/people/actions";
import { Paging } from "asc-web-components";
import { useTranslation } from 'react-i18next';
const SectionPagingContent = ({
fetchPeople,
@ -9,6 +10,7 @@ const SectionPagingContent = ({
onLoading,
selectedCount
}) => {
const { t, i18n } = useTranslation();
const onNextClick = useCallback(
e => {
if (!filter.hasNext()) {
@ -116,8 +118,8 @@ const SectionPagingContent = ({
return (
<Paging
previousLabel="Previous"
nextLabel="Next"
previousLabel={t('UserControlsCommonResource:PreviousPage')}
nextLabel={t('UserControlsCommonResource:NextPage')}
pageItems={pageItems}
onSelectPage={onChangePage}
countItems={countItems}

View File

@ -21,7 +21,7 @@ i18n
lng: 'en',
fallbackLng: 'en',
debug: true,
ns: ["PeopleJSResource", "PeopleResource", "Resource"],
ns: ['PeopleJSResource', 'PeopleResource', 'Resource', 'UserControlsCommonResource'],
interpolation: {
escapeValue: false, // not needed for react as it escapes by default