Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
fix(w3c/headers): allow localizing multiple_alternates (speced#3953)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscaceres authored Jan 11, 2022
1 parent 663ef17 commit 2757678
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/w3c/templates/headers.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ const localizationStrings = {
latest_recommendation: "Latest Recommendation:",
message_topic: "… message topic …",
more_details_about_this_doc: "More details about this document",
multiple_alternates(plural) {
return `This document is also available in ${
plural ? "these non-normative formats" : "this non-normative format"
}:`;
},
prev_editor_draft: "Previous editor's draft:",
prev_recommendation: "Previous Recommendation:",
prev_version: "Previous version:",
Expand Down Expand Up @@ -291,9 +296,7 @@ export default (conf, options) => {
: ""}
${conf.alternateFormats
? html`<p>
${options.multipleAlternates
? "This document is also available in these non-normative formats:"
: "This document is also available in this non-normative format:"}
${l10n.multiple_alternates(options.multipleAlternates)}
${options.alternatesHTML}
</p>`
: ""}
Expand Down

0 comments on commit 2757678

Please sign in to comment.