mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-01-03 07:42:39 -08:00
feat: add a language select preference to main page
This commit is contained in:
parent
2808665fea
commit
c328303c80
10 changed files with 159 additions and 107 deletions
|
|
@ -8,6 +8,7 @@ import { injectable } from 'inversify';
|
|||
import { IContextService, IContext, IPaths, IConstants } from './interface';
|
||||
import * as paths from '@/constants/paths';
|
||||
import * as appPaths from '@/constants/appPaths';
|
||||
import { tiddlywikiLanguagesMap, supportedLanguagesMap } from '@/constants/languages';
|
||||
import { getLocalHostUrlWithActualIP } from '@services/libs/url';
|
||||
|
||||
@injectable()
|
||||
|
|
@ -20,6 +21,8 @@ export class ContextService implements IContextService {
|
|||
appName: app.name,
|
||||
oSVersion: os.release(),
|
||||
environmentVersions: process.versions,
|
||||
tiddlywikiLanguagesMap,
|
||||
supportedLanguagesMap,
|
||||
};
|
||||
|
||||
private readonly context: IContext;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue