feat: add Russian desktop localization
This commit is contained in:
Vendored
+2
@@ -48,6 +48,8 @@ export function GetPluginCapability(arg1:string,arg2:string):Promise<Record<stri
|
||||
|
||||
export function GetPluginFrontendInfo(arg1:string):Promise<Record<string, any>>;
|
||||
|
||||
export function GetPluginLocalization(arg1:string,arg2:string):Promise<Record<string, string>|string>;
|
||||
|
||||
export function GetPlugins():Promise<Array<plugin.Plugin>>;
|
||||
|
||||
export function GetVaultFileMetadata(arg1:string,arg2:string):Promise<files.FileMetadata|string>;
|
||||
|
||||
@@ -82,6 +82,10 @@ export function GetPluginFrontendInfo(arg1) {
|
||||
return window['go']['api']['App']['GetPluginFrontendInfo'](arg1);
|
||||
}
|
||||
|
||||
export function GetPluginLocalization(arg1, arg2) {
|
||||
return window['go']['api']['App']['GetPluginLocalization'](arg1, arg2);
|
||||
}
|
||||
|
||||
export function GetPlugins() {
|
||||
return window['go']['api']['App']['GetPlugins']();
|
||||
}
|
||||
|
||||
@@ -920,6 +920,20 @@ export namespace plugin {
|
||||
}
|
||||
}
|
||||
|
||||
export class LocalizationConfig {
|
||||
defaultLocale: string;
|
||||
locales: Record<string, string>;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new LocalizationConfig(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.defaultLocale = source["defaultLocale"];
|
||||
this.locales = source["locales"];
|
||||
}
|
||||
}
|
||||
export class SyncConfig {
|
||||
namespaces?: string[];
|
||||
participate?: boolean;
|
||||
@@ -955,6 +969,7 @@ export namespace plugin {
|
||||
description?: string;
|
||||
source?: string;
|
||||
icon?: string;
|
||||
localization?: LocalizationConfig;
|
||||
provides: string[];
|
||||
requires?: string[];
|
||||
optionalRequires?: string[];
|
||||
@@ -979,6 +994,7 @@ export namespace plugin {
|
||||
this.description = source["description"];
|
||||
this.source = source["source"];
|
||||
this.icon = source["icon"];
|
||||
this.localization = this.convertValues(source["localization"], LocalizationConfig);
|
||||
this.provides = source["provides"];
|
||||
this.requires = source["requires"];
|
||||
this.optionalRequires = source["optionalRequires"];
|
||||
|
||||
Reference in New Issue
Block a user