feat: support i18n for core component

Signed-off-by: rui ma <ruima@alauda.io>
This commit is contained in:
rui ma
2024-01-08 23:55:00 +08:00
parent 94c4fe2782
commit ff7e12632d
37 changed files with 575 additions and 248 deletions
@@ -16,7 +16,7 @@
import { Entity } from '@backstage/catalog-model';
import { EntityProvider } from '@backstage/plugin-catalog-react';
import { renderWithEffects, TestApiProvider } from '@backstage/test-utils';
import { renderInTestApp, TestApiProvider } from '@backstage/test-utils';
import React from 'react';
import { TodoApi, todoApiRef } from '../../api';
import { TodoList } from './TodoList';
@@ -43,7 +43,7 @@ describe('TodoList', () => {
kind: 'MockKind',
} as Entity;
const rendered = await renderWithEffects(
const rendered = await renderInTestApp(
<TestApiProvider apis={[[todoApiRef, mockApi]]}>
<EntityProvider entity={mockEntity}>
<TodoList />