feat(i18n): fix i18n en-Us & en json english style (#7834)

This commit is contained in:
hwangdev97
2024-08-12 03:19:12 +00:00
parent a6169ab26a
commit 4ac9bd7790
5 changed files with 382 additions and 381 deletions

View File

@@ -1,16 +1,17 @@
{ {
"// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.": "", "// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.": "",
"Add to Favorites": "Add to Favorites", "Add to Favorites": "Add to favorites",
"Added to Favorites": "Added to Favorites", "Added to Favorites": "Added to favorites",
"Customize": "Customize", "Customize": "Customize",
"Enable AFFiNE Cloud Description": "If enabled, the data in this workspace will be backed up and synchronized via AFFiNE Cloud.", "Enable AFFiNE Cloud Description": "If enabled, the data in this workspace will be backed up and synchronized via AFFiNE Cloud.",
"Favorite": "Favorite", "Favorite": "Favorite",
"Favorited": "Favorited", "Favorited": "Favorited",
"Favorites": "Favorites", "Favorites": "Favorites",
"Remove from favorites": "Remove from favorites", "Remove from favorites": "Remove from favorites",
"Removed from Favorites": "Removed from Favorites", "Removed from Favorites": "Removed from favorites",
"com.affine.filter.is-favourited": "Favorited", "com.affine.filter.is-favourited": "Favorited",
"com.affine.settings.suggestion": "Need more customization options? You can suggest them to us in the community.", "com.affine.settings.suggestion": "Need more customization options? You can suggest them to us in the community.",
"com.affine.settings.workspace.description": "You can customize your workspace here.", "com.affine.settings.workspace.description": "You can customize your workspace here.",
"emptyFavorite": "Click Add to Favorites and the page will appear here." "emptyFavorite": "Click Add to Favorites and the page will appear here.",
"Organize pages to build knowledge": "Organize docs to build knowledge"
} }

File diff suppressed because it is too large Load Diff

View File

@@ -64,7 +64,7 @@ test('create new tab', async ({ views }) => {
page = await views.getActive(); page = await views.getActive();
// page content should be at all docs page // page content should be at all docs page
await expect(page.getByTestId('virtualized-page-list')).toContainText( await expect(page.getByTestId('virtualized-page-list')).toContainText(
'All Docs' 'All docs'
); );
}); });

View File

@@ -80,7 +80,7 @@ test('Show collections items in sidebar', async ({ page }) => {
await collectionPage await collectionPage
.getByTestId('explorer-tree-node-operation-button') .getByTestId('explorer-tree-node-operation-button')
.click(); .click();
const deletePage = page.getByText('Move to Trash'); const deletePage = page.getByText('Move to trash');
await deletePage.click(); await deletePage.click();
await page.getByTestId('confirm-modal-confirm').click(); await page.getByTestId('confirm-modal-confirm').click();
expect(await first.locator('[data-testid^="explorer-doc-"]').count()).toBe(0); expect(await first.locator('[data-testid^="explorer-doc-"]').count()).toBe(0);

View File

@@ -370,16 +370,16 @@ test('can use cmdk to delete page and restore it', async ({ page }) => {
await getBlockSuiteEditorTitle(page).click(); await getBlockSuiteEditorTitle(page).click();
await getBlockSuiteEditorTitle(page).fill('this is a new page to delete'); await getBlockSuiteEditorTitle(page).fill('this is a new page to delete');
await openQuickSearchByShortcut(page); await openQuickSearchByShortcut(page);
await keyboardDownAndSelect(page, 'Move to Trash'); await keyboardDownAndSelect(page, 'Move to trash');
await page.getByTestId('confirm-delete-page').click(); await page.getByTestId('confirm-delete-page').click();
const restoreButton = page.getByTestId('page-restore-button'); const restoreButton = page.getByTestId('page-restore-button');
await expect(restoreButton).toBeVisible(); await expect(restoreButton).toBeVisible();
await page.waitForTimeout(100); await page.waitForTimeout(100);
await openQuickSearchByShortcut(page); await openQuickSearchByShortcut(page);
expect(await commandsIsVisible(page, 'Move to Trash')).toBe(false); expect(await commandsIsVisible(page, 'Move to trash')).toBe(false);
expect(await commandsIsVisible(page, 'Export to PDF')).toBe(false); expect(await commandsIsVisible(page, 'Export to PDF')).toBe(false);
expect(await commandsIsVisible(page, 'Restore from Trash')).toBe(true); expect(await commandsIsVisible(page, 'Restore from trash')).toBe(true);
await keyboardDownAndSelect(page, 'Restore from Trash'); await keyboardDownAndSelect(page, 'Restore from trash');
await expect(restoreButton).not.toBeVisible(); await expect(restoreButton).not.toBeVisible();
}); });