diff --git a/src/components/publication_entry.astro b/src/components/publication_entry.astro
index 8248645..1bbe24a 100644
--- a/src/components/publication_entry.astro
+++ b/src/components/publication_entry.astro
@@ -1,7 +1,6 @@
---
import type { Publication } from "@data/publications";
import type { Lang } from "@i18n/ui";
-import { useTranslations } from "@i18n/utils";
import OptionalLink from "./optional_link.astro";
interface Props {
@@ -10,7 +9,6 @@ interface Props {
}
const { pub, lang } = Astro.props;
-const t = useTranslations(lang);
const citationSuffix = lang === "ja" ? `,${pub.year}年` : `, ${pub.year}`;
---
@@ -22,7 +20,6 @@ const citationSuffix = lang === "ja" ? `,${pub.year}年` : `, ${pub.year}`;
{pub.venueShort ?? pub.venue}{citationSuffix}
- {!pub.peerReviewed && {t("publications.nonPeerReviewed")}}
{pub.pdfUrl &&
PDF}
{pub.slidesUrl &&
Slides}
@@ -54,15 +51,6 @@ const citationSuffix = lang === "ja" ? `,${pub.year}年` : `, ${pub.year}`;
font-style: italic;
}
- .pub-review-status {
- display: inline-block;
- margin-top: 0.375rem;
- padding: 0.125rem 0.375rem;
- border: 1px solid var(--color-border);
- border-radius: 0.1875rem;
- color: var(--color-text-secondary);
- font-size: 0.75rem;
- }
.pub-links {
display: flex;
diff --git a/src/i18n/ui.ts b/src/i18n/ui.ts
index d956181..23869c6 100644
--- a/src/i18n/ui.ts
+++ b/src/i18n/ui.ts
@@ -44,7 +44,6 @@ export const ui = {
"contact.email": "Email",
"footer.copyright": "All rights reserved.",
"publications.empty": "準備中",
- "publications.nonPeerReviewed": "査読なし",
},
en: {
"nav.home": "Home",
@@ -80,6 +79,5 @@ export const ui = {
"contact.email": "Email",
"footer.copyright": "All rights reserved.",
"publications.empty": "Coming soon",
- "publications.nonPeerReviewed": "Non-peer-reviewed",
},
} as const;
diff --git a/tests/e2e/site.spec.ts b/tests/e2e/site.spec.ts
index 57eba22..3e3be35 100644
--- a/tests/e2e/site.spec.ts
+++ b/tests/e2e/site.spec.ts
@@ -183,10 +183,14 @@ test("renders publication collection metadata", async ({ page }) => {
await expect(publication.locator(".pub-venue")).toContainText(/, \d{4}$/);
});
-test("labels non-peer-reviewed publications on Japanese pages", async ({ page }) => {
- await page.goto("/ja/");
+test("does not label publications with their peer-review status", async ({ page }) => {
+ for (const lang of ["ja", "en"] as const) {
+ await page.goto(`/${lang}/`);
- await expect(page.locator(".pub-review-status").first()).toHaveText("査読なし");
+ const publications = page.locator('section[aria-labelledby="publications"]');
+ await expect(publications.locator(".pub-entry").first()).toBeVisible();
+ await expect(publications.getByText(/査読|peer-reviewed/i)).toHaveCount(0);
+ }
});
test("uses localized alternative text for the profile portrait", async ({ page }) => {