diff --git a/common/i18n.js b/common/i18n.js new file mode 100644 index 000000000..3d1499e9a --- /dev/null +++ b/common/i18n.js @@ -0,0 +1,4 @@ +export const createTranslator = (dictionary = {}) => (key) => { + return dictionary[key] ?? key; +}; + diff --git a/html/index.html b/html/index.html index 7f0b02eb9..fab7dad2a 100644 --- a/html/index.html +++ b/html/index.html @@ -19,27 +19,29 @@ {{ themes }} -
-