diff --git a/packages/marko-web-theme-monorail-magazine/components/blocks/magazine-issues.marko b/packages/marko-web-theme-monorail-magazine/components/blocks/magazine-issues.marko index ca7810232..07524b524 100644 --- a/packages/marko-web-theme-monorail-magazine/components/blocks/magazine-issues.marko +++ b/packages/marko-web-theme-monorail-magazine/components/blocks/magazine-issues.marko @@ -1,7 +1,7 @@ import { getAsObject } from "@parameter1/base-cms-object-path"; import queryFragment from "../../graphql/fragments/magazine-latest-issue"; -$ const { site } = out.global; +$ const { site, i18n } = out.global; $ const { publicationId } = input; $ const blockName = "magazine-issues" $ const linkHeader = input.linkHeader || false; @@ -42,10 +42,10 @@ $ const title = input.title || "In Print"; target: "_blank", } > - Subscribe + ${i18n("Subscribe")} - Archives + ${i18n("Archives")} diff --git a/packages/marko-web-theme-monorail-magazine/components/publication-buttons.marko b/packages/marko-web-theme-monorail-magazine/components/publication-buttons.marko index 744f69910..8ff88c3ef 100644 --- a/packages/marko-web-theme-monorail-magazine/components/publication-buttons.marko +++ b/packages/marko-web-theme-monorail-magazine/components/publication-buttons.marko @@ -1,7 +1,7 @@ import { getAsArray, getAsObject } from "@parameter1/base-cms-object-path"; import defaultValue from "@parameter1/base-cms-marko-core/utils/default-value"; -$ const { site } = out.global; +$ const { site, i18n } = out.global; $ const buttons = input.buttons || defaultValue(site.get("magazine.buttons"), ["subscribe", "digital-edition", "pdf", "archives", "change-address", "renewal", "cancel", "reprints", "e-inquiry"]); $ const link = { class: "btn btn-primary" }; @@ -15,47 +15,47 @@ $ const issue = getAsObject(input, "issue"); - Subscribe + ${i18n("Subscribe")} - Renew + ${i18n("Renew")} - Cancel + ${i18n("Cancel")} - Change Address + ${i18n("Change Address")} - Digital Edition + ${i18n("Digital Edition")} - Download PDF + ${i18n("Download PDF")} - Archives + ${i18n("Archives")} - Reprints + ${i18n("Reprints")} - E-Inquiry + ${i18n("E-Inquiry")} diff --git a/packages/marko-web-theme-monorail-magazine/components/publication-links.marko b/packages/marko-web-theme-monorail-magazine/components/publication-links.marko index d733b38b4..5af61c0bb 100644 --- a/packages/marko-web-theme-monorail-magazine/components/publication-links.marko +++ b/packages/marko-web-theme-monorail-magazine/components/publication-links.marko @@ -1,7 +1,7 @@ import { getAsArray, getAsObject } from "@parameter1/base-cms-object-path"; import defaultValue from "@parameter1/base-cms-marko-core/utils/default-value"; -$ const { site } = out.global; +$ const { site, i18n } = out.global; $ const buttons = input.buttons || defaultValue(site.get("magazine.links"), ["subscribe", "digital-edition", "pdf", "archives", "change-address", "renewal", "cancel", "reprints", "e-inquiry"]); $ const link = { class: "magazine-link" }; @@ -15,47 +15,47 @@ $ const issue = getAsObject(input, "issue"); - Subscribe + ${i18n("Subscribe")} - Renew + ${i18n("Renew")} - Cancel + ${i18n("Cancel")} - Change Address + ${i18n("Change Address")} - Digital Edition + ${i18n("Digital Edition")} - Download PDF + ${i18n("Download PDF")} - Archives + ${i18n("Archives")} - Reprints + ${i18n("Reprints")} - E-Inquiry + ${i18n("E-Inquiry")} diff --git a/packages/marko-web-theme-monorail-magazine/templates/issue.marko b/packages/marko-web-theme-monorail-magazine/templates/issue.marko index 4453d4c48..cee9ab81f 100644 --- a/packages/marko-web-theme-monorail-magazine/templates/issue.marko +++ b/packages/marko-web-theme-monorail-magazine/templates/issue.marko @@ -2,7 +2,7 @@ import issueFragment from "../graphql/fragments/magazine-issue-archive"; import contentListFragment from "../graphql/fragments/magazine-content-feed-block"; import { get, getAsObject } from "@parameter1/base-cms-object-path"; -$ const { site, pagination: p, } = out.global; +$ const { site, pagination: p, i18n } = out.global; $ const { id, pageNode } = data; @@ -77,14 +77,14 @@ $ const { id, pageNode } = data; collapsible=false > <@header> - Past Issues + ${i18n("Past Issues")} <@body> <@footer> - View All Past Issues + ${i18n("View All Past Issues")}