Skip to content

Commit

Permalink
Missing translations displayed with [@TOTRANSLATE] prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
Simounet committed Feb 27, 2020
1 parent f4fabb2 commit 6a4838b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wallabagger/js/common.js
Expand Up @@ -2,8 +2,9 @@
'use strict';

const Common = (() => {
const translate = (message) => {
return browser.i18n.getMessage(message);
const translate = (key) => {
const message = browser.i18n.getMessage(key);
return message || `[@TOTRANSLATE] ${key.replace(/_/g, ' ')}`;
};

const translateAll = () => {
Expand Down

0 comments on commit 6a4838b

Please sign in to comment.