refactor: consolidate English translations (#6640)
This commit is contained in:
1 parent
81aa704537
commit
9e14a07e64
449 files changed
+3515
-3922
No files matched your search
@@ -49,7 +49,8 @@ export default function IndexerManagerWidget({
|
||||
widgetRuntimeRef,
|
||||
displayMode,
|
||||
}: WidgetComponentProps<"indexerManager">) {
|
||||
const t = useI18n();
|
||||
const t = useI18n("widget.indexerManager");
|
||||
const tCommon = useI18n("common");
|
||||
const indexersQuery = clientApi.widget.indexerManager.getIndexersStatus.useQuery({ integrationIds });
|
||||
const isInitialPending = isInitialWidgetQueryPending(indexersQuery);
|
||||
const indexersData = getUsableWidgetQueryData(indexersQuery) ?? [];
|
||||
@@ -92,8 +93,8 @@ export default function IndexerManagerWidget({
|
||||
p={isDense ? "xs" : "sm"}
|
||||
>
|
||||
<Group className="indexer-manager-title" align="center" gap="xs" wrap="nowrap" w="100%">
|
||||
{testAllError && <VisuallyHidden role="alert">{t("common.error")}</VisuallyHidden>}
|
||||
<Tooltip label={t("widget.indexerManager.title")} disabled={!hasSmallWidth}>
|
||||
{testAllError && <VisuallyHidden role="alert">{tCommon("error")}</VisuallyHidden>}
|
||||
<Tooltip label={t("title")} disabled={!hasSmallWidth}>
|
||||
<IconReportSearch
|
||||
className="indexer-manager-title-icon"
|
||||
size={hasSmallWidth ? 16 : 20}
|
||||
@@ -102,7 +103,7 @@ export default function IndexerManagerWidget({
|
||||
</Tooltip>
|
||||
{!hasSmallWidth && (
|
||||
<Text size={isDense ? "xs" : "sm"} fw={600} truncate="end">
|
||||
{t("widget.indexerManager.title")}
|
||||
{t("title")}
|
||||
</Text>
|
||||
)}
|
||||
{showHealthCounts && (
|
||||
@@ -117,8 +118,8 @@ export default function IndexerManagerWidget({
|
||||
)}
|
||||
</Group>
|
||||
)}
|
||||
<WidgetQueryErrorIndicator error={indexersQuery.error} label={t("widget.indexerManager.title")} />
|
||||
<Tooltip label={testAllError ? t("common.error") : t("widget.indexerManager.testAll")}>
|
||||
<WidgetQueryErrorIndicator error={indexersQuery.error} label={t("title")} />
|
||||
<Tooltip label={testAllError ? tCommon("error") : t("testAll")}>
|
||||
<ActionIcon
|
||||
className={combineClasses("indexer-manager-test-action-icon", classes.testAction, actionTargetClasses.root)}
|
||||
size="sm"
|
||||
@@ -131,7 +132,7 @@ export default function IndexerManagerWidget({
|
||||
onClick={() => {
|
||||
testAllIndexers();
|
||||
}}
|
||||
aria-label={t("widget.indexerManager.testAll")}
|
||||
aria-label={t("testAll")}
|
||||
>
|
||||
<IconTestPipe size="var(--mantine-font-size-sm)" />
|
||||
</ActionIcon>
|
||||
@@ -161,7 +162,7 @@ export default function IndexerManagerWidget({
|
||||
</Text>
|
||||
{error && (
|
||||
<Badge size="xs" color="red" variant="light">
|
||||
{t("common.error")}
|
||||
{tCommon("error")}
|
||||
</Badge>
|
||||
)}
|
||||
</Group>
|
||||
@@ -197,7 +198,7 @@ export default function IndexerManagerWidget({
|
||||
</Anchor>
|
||||
{isAdvanced ? (
|
||||
<Badge size="xs" color={presentation.color} variant="light">
|
||||
{t(`widget.indexerManager.status.${displayStatus}`)}
|
||||
{t(`status.${displayStatus}` as never)}
|
||||
</Badge>
|
||||
) : displayStatus === "healthy" ? (
|
||||
<IconCircleCheck
|
||||
|
||||
Reference in new issue
Block a user