diff --git a/src/Kentico.Xperience.Algolia/Admin/Client/src/templates/IndexedContentTemplate.tsx b/src/Kentico.Xperience.Algolia/Admin/Client/src/templates/IndexedContentTemplate.tsx index 0b5efa4..040f78e 100644 --- a/src/Kentico.Xperience.Algolia/Admin/Client/src/templates/IndexedContentTemplate.tsx +++ b/src/Kentico.Xperience.Algolia/Admin/Client/src/templates/IndexedContentTemplate.tsx @@ -1,7 +1,7 @@ -import React from 'react' -import { Box, Headline, HeadlineSize, Spacing, Stack, Table, type TableColumn, type TableRow } from '@kentico/xperience-admin-components' import { RoutingContentPlaceholder, usePageCommand } from '@kentico/xperience-admin-base' -import localization from '../localization/localization.json' +import { Box, Headline, HeadlineSize, Spacing, Stack, Table, type TableColumn, type TableRow } from '@kentico/xperience-admin-components' +import React from 'react' +import Localization from '../localization/localization.json' interface IndexedContentPageProps { readonly pathColumns: TableColumn[] @@ -18,18 +18,19 @@ const Commands = { ShowPathDetail: 'ShowPathDetail' } +// eslint-disable-next-line @typescript-eslint/no-unused-vars export const IndexedContentTemplate = ({ pathColumns, pathRows, propertyColumns, propertyRows }: IndexedContentPageProps): JSX.Element => { usePageCommand(Commands.ShowPathDetail) return ( - {localization.integrations.algolia.content.headlines.main} + {Localization.integrations.algolia.content.headlines.main} - {localization.integrations.algolia.content.headlines.paths} + {Localization.integrations.algolia.content.headlines.paths} - {localization.integrations.algolia.content.headlines.properties} + {Localization.integrations.algolia.content.headlines.properties} diff --git a/src/Kentico.Xperience.Algolia/Admin/Client/src/templates/PathDetailTemplate.tsx b/src/Kentico.Xperience.Algolia/Admin/Client/src/templates/PathDetailTemplate.tsx index 4ec3ed9..69574f9 100644 --- a/src/Kentico.Xperience.Algolia/Admin/Client/src/templates/PathDetailTemplate.tsx +++ b/src/Kentico.Xperience.Algolia/Admin/Client/src/templates/PathDetailTemplate.tsx @@ -1,7 +1,7 @@ import { usePageCommand } from '@kentico/xperience-admin-base' import { Box, Headline, HeadlineSize, Pagination, Spacing, Stack, Table, type TableCell, type TableColumn, type TableRow } from '@kentico/xperience-admin-components' import React, { useState } from 'react' -import localization from '../localization/localization.json' +import Localization from '../localization/localization.json' const ListingCommands = { LoadData: 'LoadData' @@ -84,19 +84,19 @@ export const PathDetailTemplate = ({ aliasPath, columns }: PathDetailPageProps): return ( - {localization.integrations.algolia.pathdetail.headlines.main} + {Localization.integrations.algolia.pathdetail.headlines.main} - {localization.integrations.algolia.pathdetail.headlines.path} + {Localization.integrations.algolia.pathdetail.headlines.path} {aliasPath} - {localization.integrations.algolia.pathdetail.headlines.pagetypes} + {Localization.integrations.algolia.pathdetail.headlines.pagetypes} {tableData.totalCount > 0 ? (
c.visible)} rows={prepareRows(tableData.rows)} /> ) : ( -

{localization.integrations.algolia.messages.norecords}

+

{Localization.integrations.algolia.messages.norecords}

)}