Skip to content

Commit

Permalink
fix: ssr for elements (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
imprashast committed Oct 25, 2023
1 parent fe44ef2 commit 626ea5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/output/elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ getSVGs().forEach(({ svg, name, size, filename, exportName }) => {
(attr) => attr.name + `=` + `"` + attr.value + `"`
);
const { message, id, comment } = titleMessage || {};
const titleHtml = "${unsafeSVG(`<title>${title}</title>`)}";
const titleHtml = "${unsafeStatic(`<title>${title}</title>`)}";
const className = exportName;
// Handle i18n for icon title
const output = [
`import { LitElement, html } from 'lit';`,
`import { unsafeSVG } from "lit/directives/unsafe-svg.js";`,
`import { LitElement } from 'lit';`,
`import { unsafeStatic, html } from "lit/static-html.js";`,
`import { i18n } from '@lingui/core';`,
`import { messages as nbMessages} from '../src/raw/${name}/locales/nb/messages.mjs';`,
`import { messages as enMessages} from '../src/raw/${name}/locales/en/messages.mjs';`,
Expand Down

0 comments on commit 626ea5a

Please sign in to comment.