WIP: Arabic localization.|

This commit is contained in:
a.bouhuolia
2021-06-10 12:51:00 +02:00
parent 4fc7c37260
commit 1ea32884c2
465 changed files with 3299 additions and 2109 deletions

View File

@@ -46,6 +46,8 @@ export default function TableCell({
);
}
const isRTL = true;
return (
<div
{...cell.getCellProps({
@@ -62,7 +64,7 @@ export default function TableCell({
'cell-inner',
)}
style={{
paddingLeft:
[isRTL ? 'paddingRight' : 'paddingLeft']:
isExpandColumn && expandable
? `${depth * expandColumnSpace}rem`
: '',

View File

@@ -1,4 +1,5 @@
import React, { useContext } from 'react';
import intl from 'react-intl-universal';
import TableContext from './TableContext';
/**
@@ -6,12 +7,15 @@ import TableContext from './TableContext';
*/
export default function TableNoResultsRow() {
const {
props: { noResults }
props: { noResults },
} = useContext(TableContext);
const noResultText =
noResults || intl.get('there_is_no_results_in_the_table');
return (
<div className={'tr no-results'}>
<div class="td">{ noResults }</div>
<div class="td">{noResultText}</div>
</div>
);
}
}