Skip to content

Commit

Permalink
Merge pull request #1715 from googlefonts/link-to-sheet-from-lang-panel
Browse files Browse the repository at this point in the history
Link to spreadsheet from the language panel, to invite people to contribute
  • Loading branch information
justvanrossum authored Oct 13, 2024
2 parents 4b6d178 + d9268d7 commit 03b8c6f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/fontra/client/core/html-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ export function addStyleSheet(cssText, element = null) {
}

// Convenience shortcuts
export const a = createDomElement.bind(null, "a");
export const br = createDomElement.bind(null, "br");
export const button = createDomElement.bind(null, "button");
export const div = createDomElement.bind(null, "div");
Expand Down
16 changes: 16 additions & 0 deletions src/fontra/views/applicationsettings/panel-display-language.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,22 @@ export class DisplayLanguagePanel extends BaseInfoPanel {
ui: "radio",
options: languageOptions,
},
{
ui: "plain",
displayName: html.div({}, [
html.br(),
"If you'd like to contribute to the translations, please visit the ",
html.a(
{
href: "https://docs.google.com/spreadsheets/d/1woTU8dZCHJh7yvdk-N1kgQBUj4Sn3SdRsbKgn6ltJQs/edit?gid=1731105247#gid=1731105247",
target: "_blank",
},
["public spreadsheet"]
),
" where we maintain them. We welcome fixes, refinements, additions, " +
"and full translations.",
]),
},
],
},
];
Expand Down

0 comments on commit 03b8c6f

Please sign in to comment.