mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Add plugin translation system
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
5
shared/models/plugins/plugin-translation.model.ts
Normal file
5
shared/models/plugins/plugin-translation.model.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export type PluginTranslation = {
|
||||
[ npmName: string ]: {
|
||||
[ key: string ]: string
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user