1
0
Fork 0
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:
Andrew Simachev 2023-07-30 13:30:54 +02:00
parent c9104e5760
commit 726fdc4013
No known key found for this signature in database
GPG key ID: 49A163D0D14E6FD8
4 changed files with 12 additions and 12 deletions

View file

@ -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}⚠️`;
};