mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
fix multiple tray icons
This commit is contained in:
parent
c9104e5760
commit
726fdc4013
4 changed files with 12 additions and 12 deletions
|
@ -213,13 +213,9 @@ class Util {
|
|||
translate (key) {
|
||||
const lang = this.getLang();
|
||||
|
||||
console.log('[translate]', lang);
|
||||
|
||||
let data = {};
|
||||
try { data = require(`../../dist/lib/json/lang/${lang}.json`); } catch(e) {};
|
||||
|
||||
console.log('[translate]', data);
|
||||
|
||||
return data[key] || `⚠️${key}⚠️`;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue