diff options
Diffstat (limited to 'shared/models/plugins')
-rw-r--r-- | shared/models/plugins/plugin-package-json.model.ts | 6 | ||||
-rw-r--r-- | shared/models/plugins/plugin-translation.model.ts | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/shared/models/plugins/plugin-package-json.model.ts b/shared/models/plugins/plugin-package-json.model.ts index 87a48e97f..3f3077671 100644 --- a/shared/models/plugins/plugin-package-json.model.ts +++ b/shared/models/plugins/plugin-package-json.model.ts | |||
@@ -1,5 +1,9 @@ | |||
1 | import { PluginClientScope } from './plugin-client-scope.type' | 1 | import { PluginClientScope } from './plugin-client-scope.type' |
2 | 2 | ||
3 | export type PluginTranslationPaths = { | ||
4 | [ locale: string ]: string | ||
5 | } | ||
6 | |||
3 | export type ClientScript = { | 7 | export type ClientScript = { |
4 | script: string, | 8 | script: string, |
5 | scopes: PluginClientScope[] | 9 | scopes: PluginClientScope[] |
@@ -20,4 +24,6 @@ export type PluginPackageJson = { | |||
20 | css: string[] | 24 | css: string[] |
21 | 25 | ||
22 | clientScripts: ClientScript[] | 26 | clientScripts: ClientScript[] |
27 | |||
28 | translations: PluginTranslationPaths | ||
23 | } | 29 | } |
diff --git a/shared/models/plugins/plugin-translation.model.ts b/shared/models/plugins/plugin-translation.model.ts new file mode 100644 index 000000000..a2dd8e560 --- /dev/null +++ b/shared/models/plugins/plugin-translation.model.ts | |||
@@ -0,0 +1,5 @@ | |||
1 | export type PluginTranslation = { | ||
2 | [ npmName: string ]: { | ||
3 | [ key: string ]: string | ||
4 | } | ||
5 | } | ||