1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 10:19:35 +02:00

Add plugin translation system

This commit is contained in:
Chocobozzz 2019-07-26 14:44:50 +02:00
parent ee286591a5
commit d75db01f14
No known key found for this signature in database
GPG key ID: 583A612D890159BE
18 changed files with 304 additions and 29 deletions

View file

@ -1,5 +1,9 @@
import { PluginClientScope } from './plugin-client-scope.type'
export type PluginTranslationPaths = {
[ locale: string ]: string
}
export type ClientScript = {
script: string,
scopes: PluginClientScope[]
@ -20,4 +24,6 @@ export type PluginPackageJson = {
css: string[]
clientScripts: ClientScript[]
translations: PluginTranslationPaths
}