X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=shared%2Fmodels%2Fplugins%2Fplugin-package-json.model.ts;h=c26e9ae5b55dcca60ee67be8c9a385f7146f9372;hb=781ba981263ee6524fea1a95836108d252a124f4;hp=f8029ec3435d5b2cfa0654498e9a05d6a47c761e;hpb=2c0539420d77339e6afe8d7920b44af4c0dcb1e6;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 f8029ec34..c26e9ae5b 100644 --- a/shared/models/plugins/plugin-package-json.model.ts +++ b/shared/models/plugins/plugin-package-json.model.ts @@ -1,21 +1,29 @@ +import { PluginClientScope } from './plugin-client-scope.type' + +export type PluginTranslationPaths = { + [ locale: string ]: string +} + export type ClientScript = { - script: string, - scopes: string[] + script: string + scopes: PluginClientScope[] } 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 }