electron menu translation WIP

This commit is contained in:
SPRINX0\prochazka
2025-11-18 09:20:56 +01:00
parent 6e439adb51
commit 7bb9414be8
4 changed files with 35 additions and 7 deletions

View File

@@ -1,6 +1,10 @@
function _t(key, { defaultMessage }) {
return global.TRANSLATION_DATA?.[key] || defaultMessage;
}
module.exports = ({ editMenu, isMac }) => [
{
label: 'File',
label: _t('app.databaseName', { defaultMessage: 'DB NAME' }),
submenu: [
{ command: 'new.connection', hideDisabled: true },
{ command: 'new.sqliteDatabase', hideDisabled: true },