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:
parent
ee286591a5
commit
d75db01f14
18 changed files with 304 additions and 29 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue