mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-12-06 20:42:31 -05:00
feat: translations support
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import React, { useEffect, useRef } from 'react';
|
||||
import { useItemList } from './useItemList';
|
||||
import { translateString } from '../../utils/helpers/';
|
||||
|
||||
export function useItemListSync(props) {
|
||||
const itemsListRef = useRef(null);
|
||||
@@ -32,7 +33,7 @@ export function useItemListSync(props) {
|
||||
|
||||
return 1 > listHandler.totalPages() || listHandler.loadedAllItems() ? null : (
|
||||
<button className="load-more" onClick={onClickLoadMore}>
|
||||
SHOW MORE
|
||||
{translateString("SHOW MORE")}
|
||||
</button>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user