X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=shared%2Fmodels%2Fplugins%2Fplugin-package-json.model.ts;h=c26e9ae5b55dcca60ee67be8c9a385f7146f9372;hb=781ba981263ee6524fea1a95836108d252a124f4;hp=87a48e97f78c57aef7c7972b04dc9e38bead0c8d;hpb=e8f902c05cb35f6d5e9b75a23ddabd51c220a976;p=github%2FChocobozzz%2FPeerTube.git diff --git a/shared/models/plugins/plugin-package-json.model.ts b/shared/models/plugins/plugin-package-json.model.ts index 87a48e97f..c26e9ae5b 100644 --- a/shared/models/plugins/plugin-package-json.model.ts +++ b/shared/models/plugins/plugin-package-json.model.ts @@ -1,7 +1,11 @@ import { PluginClientScope } from './plugin-client-scope.type' +export type PluginTranslationPaths = { + [ locale: string ]: string +} + export type ClientScript = { - script: string, + script: string scopes: PluginClientScope[] } @@ -9,15 +13,17 @@ export type PluginPackageJson = { name: string version: string description: string - engine: { peertube: string }, + engine: { peertube: string } - homepage: string, - author: string, - bugs: string, - library: string, + homepage: string + author: string + bugs: string + library: string staticDirs: { [ name: string ]: string } css: string[] clientScripts: ClientScript[] + + translations: PluginTranslationPaths }