mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 21:45:31 +09:00
fix(i18n): review translations and fix i18n library misuse (#2750)
This commit is contained in:
1 parent
78f783f0c4
commit
8cb097f954
575 files changed
+192671
-160540
No files matched your search
@@ -9,6 +9,7 @@ import {
|
||||
} from '@electron/common/DesktopConfig';
|
||||
import {createChildLogger} from '@electron/common/Logger';
|
||||
import type {ThemeDirectoryCssFile, ThemeLocalFileReadResult, ThemeLocalFileReference} from '@electron/common/Types';
|
||||
import {t} from '@electron/main/MainI18n';
|
||||
import {BrowserWindow, dialog, ipcMain} from 'electron';
|
||||
|
||||
const logger = createChildLogger('ThemeLocalFiles');
|
||||
@@ -97,7 +98,7 @@ export function registerThemeLocalFileHandlers(getMainWindow: () => BrowserWindo
|
||||
ipcMain.handle('theme-local-files-pick', async (event): Promise<Array<ThemeLocalFileReference>> => {
|
||||
const parent = BrowserWindow.fromWebContents(event.sender) ?? getMainWindow();
|
||||
const result = await showThemeOpenDialog(parent, {
|
||||
title: 'Add theme files',
|
||||
title: t('desktop.themes.addLocalFiles'),
|
||||
properties: ['openFile', 'multiSelections'],
|
||||
});
|
||||
if (result.canceled) {
|
||||
@@ -159,7 +160,7 @@ export function registerThemeLocalFileHandlers(getMainWindow: () => BrowserWindo
|
||||
ipcMain.handle('theme-directory-import', async (event): Promise<Array<ThemeDirectoryCssFile>> => {
|
||||
const parent = BrowserWindow.fromWebContents(event.sender) ?? getMainWindow();
|
||||
const result = await showThemeOpenDialog(parent, {
|
||||
title: 'Import theme directory',
|
||||
title: t('desktop.themes.importFolder'),
|
||||
properties: ['openDirectory'],
|
||||
});
|
||||
if (result.canceled || result.filePaths.length === 0) {
|
||||
|
||||
Reference in new issue
Block a user