@seshuk/payload-media-preview 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +507 -0
- package/dist/components/Cell/Cell.client.d.ts +18 -0
- package/dist/components/Cell/Cell.client.js +131 -0
- package/dist/components/Cell/Cell.scss +43 -0
- package/dist/components/Cell/Cell.server.d.ts +11 -0
- package/dist/components/Cell/Cell.server.js +33 -0
- package/dist/components/ExternalLinkIcon/ExternalLinkIcon.d.ts +5 -0
- package/dist/components/ExternalLinkIcon/ExternalLinkIcon.js +17 -0
- package/dist/components/ExternalLinkIcon/ExternalLinkIcon.scss +19 -0
- package/dist/components/Field/Field.d.ts +18 -0
- package/dist/components/Field/Field.js +107 -0
- package/dist/components/Field/Field.scss +14 -0
- package/dist/components/MediaPreview.constants.d.ts +4 -0
- package/dist/components/MediaPreview.constants.js +28 -0
- package/dist/components/MediaPreview.d.ts +10 -0
- package/dist/components/MediaPreview.js +57 -0
- package/dist/components/MediaPreview.types.d.ts +2 -0
- package/dist/components/MediaPreview.types.js +1 -0
- package/dist/components/MediaPreview.utils.d.ts +6 -0
- package/dist/components/MediaPreview.utils.js +38 -0
- package/dist/components/Modal/Modal.constants.d.ts +16 -0
- package/dist/components/Modal/Modal.constants.js +16 -0
- package/dist/components/Modal/Modal.d.ts +19 -0
- package/dist/components/Modal/Modal.js +277 -0
- package/dist/components/Modal/Modal.scss +173 -0
- package/dist/components/Viewer/AudioViewer.d.ts +3 -0
- package/dist/components/Viewer/AudioViewer.js +24 -0
- package/dist/components/Viewer/IframeViewer.d.ts +3 -0
- package/dist/components/Viewer/IframeViewer.js +14 -0
- package/dist/components/Viewer/ImageViewer.d.ts +3 -0
- package/dist/components/Viewer/ImageViewer.js +10 -0
- package/dist/components/Viewer/VideoViewer.d.ts +3 -0
- package/dist/components/Viewer/VideoViewer.js +25 -0
- package/dist/components/Viewer/Viewer.d.ts +12 -0
- package/dist/components/Viewer/Viewer.js +50 -0
- package/dist/components/adapterResolver.d.ts +13 -0
- package/dist/components/adapterResolver.js +43 -0
- package/dist/exports/client.d.ts +5 -0
- package/dist/exports/client.js +5 -0
- package/dist/exports/rsc.d.ts +2 -0
- package/dist/exports/rsc.js +2 -0
- package/dist/field.d.ts +18 -0
- package/dist/field.js +36 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +90 -0
- package/dist/translations/index.d.ts +8 -0
- package/dist/translations/index.js +90 -0
- package/dist/translations/locales/ar.d.ts +2 -0
- package/dist/translations/locales/ar.js +11 -0
- package/dist/translations/locales/az.d.ts +2 -0
- package/dist/translations/locales/az.js +11 -0
- package/dist/translations/locales/bg.d.ts +2 -0
- package/dist/translations/locales/bg.js +11 -0
- package/dist/translations/locales/bnBd.d.ts +2 -0
- package/dist/translations/locales/bnBd.js +11 -0
- package/dist/translations/locales/bnIn.d.ts +2 -0
- package/dist/translations/locales/bnIn.js +11 -0
- package/dist/translations/locales/ca.d.ts +2 -0
- package/dist/translations/locales/ca.js +11 -0
- package/dist/translations/locales/cs.d.ts +2 -0
- package/dist/translations/locales/cs.js +11 -0
- package/dist/translations/locales/da.d.ts +2 -0
- package/dist/translations/locales/da.js +11 -0
- package/dist/translations/locales/de.d.ts +2 -0
- package/dist/translations/locales/de.js +11 -0
- package/dist/translations/locales/en.d.ts +2 -0
- package/dist/translations/locales/en.js +11 -0
- package/dist/translations/locales/es.d.ts +2 -0
- package/dist/translations/locales/es.js +11 -0
- package/dist/translations/locales/et.d.ts +2 -0
- package/dist/translations/locales/et.js +11 -0
- package/dist/translations/locales/fa.d.ts +2 -0
- package/dist/translations/locales/fa.js +11 -0
- package/dist/translations/locales/fr.d.ts +2 -0
- package/dist/translations/locales/fr.js +11 -0
- package/dist/translations/locales/he.d.ts +2 -0
- package/dist/translations/locales/he.js +11 -0
- package/dist/translations/locales/hr.d.ts +2 -0
- package/dist/translations/locales/hr.js +11 -0
- package/dist/translations/locales/hu.d.ts +2 -0
- package/dist/translations/locales/hu.js +11 -0
- package/dist/translations/locales/hy.d.ts +2 -0
- package/dist/translations/locales/hy.js +11 -0
- package/dist/translations/locales/id.d.ts +2 -0
- package/dist/translations/locales/id.js +11 -0
- package/dist/translations/locales/is.d.ts +2 -0
- package/dist/translations/locales/is.js +11 -0
- package/dist/translations/locales/it.d.ts +2 -0
- package/dist/translations/locales/it.js +11 -0
- package/dist/translations/locales/ja.d.ts +2 -0
- package/dist/translations/locales/ja.js +11 -0
- package/dist/translations/locales/ko.d.ts +2 -0
- package/dist/translations/locales/ko.js +11 -0
- package/dist/translations/locales/lt.d.ts +2 -0
- package/dist/translations/locales/lt.js +11 -0
- package/dist/translations/locales/lv.d.ts +2 -0
- package/dist/translations/locales/lv.js +11 -0
- package/dist/translations/locales/my.d.ts +2 -0
- package/dist/translations/locales/my.js +11 -0
- package/dist/translations/locales/nb.d.ts +2 -0
- package/dist/translations/locales/nb.js +11 -0
- package/dist/translations/locales/nl.d.ts +2 -0
- package/dist/translations/locales/nl.js +11 -0
- package/dist/translations/locales/pl.d.ts +2 -0
- package/dist/translations/locales/pl.js +11 -0
- package/dist/translations/locales/pt.d.ts +2 -0
- package/dist/translations/locales/pt.js +11 -0
- package/dist/translations/locales/ro.d.ts +2 -0
- package/dist/translations/locales/ro.js +11 -0
- package/dist/translations/locales/rs.d.ts +2 -0
- package/dist/translations/locales/rs.js +11 -0
- package/dist/translations/locales/rsLatin.d.ts +2 -0
- package/dist/translations/locales/rsLatin.js +11 -0
- package/dist/translations/locales/ru.d.ts +2 -0
- package/dist/translations/locales/ru.js +11 -0
- package/dist/translations/locales/sk.d.ts +2 -0
- package/dist/translations/locales/sk.js +11 -0
- package/dist/translations/locales/sl.d.ts +2 -0
- package/dist/translations/locales/sl.js +11 -0
- package/dist/translations/locales/sv.d.ts +2 -0
- package/dist/translations/locales/sv.js +11 -0
- package/dist/translations/locales/ta.d.ts +2 -0
- package/dist/translations/locales/ta.js +11 -0
- package/dist/translations/locales/th.d.ts +2 -0
- package/dist/translations/locales/th.js +11 -0
- package/dist/translations/locales/tr.d.ts +2 -0
- package/dist/translations/locales/tr.js +11 -0
- package/dist/translations/locales/uk.d.ts +2 -0
- package/dist/translations/locales/uk.js +11 -0
- package/dist/translations/locales/vi.d.ts +2 -0
- package/dist/translations/locales/vi.js +11 -0
- package/dist/translations/locales/zh.d.ts +2 -0
- package/dist/translations/locales/zh.js +11 -0
- package/dist/translations/locales/zhTw.d.ts +2 -0
- package/dist/translations/locales/zhTw.js +11 -0
- package/dist/translations/types.d.ts +11 -0
- package/dist/translations/types.js +1 -0
- package/dist/types.d.ts +130 -0
- package/dist/types.js +2 -0
- package/dist/utils/insertField.d.ts +3 -0
- package/dist/utils/insertField.js +97 -0
- package/package.json +121 -0
package/dist/field.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { UIField } from 'payload';
|
|
2
|
+
import type { MediaPreviewContentMode, MediaPreviewMode } from './types.js';
|
|
3
|
+
export type MediaPreviewFieldOptions = {
|
|
4
|
+
/** Which adapters to try when resolving a preview (by name). */
|
|
5
|
+
adapterNames?: string[];
|
|
6
|
+
contentMode?: Partial<MediaPreviewContentMode>;
|
|
7
|
+
/**
|
|
8
|
+
* Preview display mode.
|
|
9
|
+
*
|
|
10
|
+
* - `'auto'` — popup in cell (desktop), fullscreen in field and on mobile.
|
|
11
|
+
* - `'fullscreen'` — always fullscreen modal.
|
|
12
|
+
* @default 'auto'
|
|
13
|
+
*/
|
|
14
|
+
mode?: MediaPreviewMode;
|
|
15
|
+
/** Payload UI field overrides (`name` and `type` cannot be changed). */
|
|
16
|
+
overrides?: Partial<Omit<UIField, 'name' | 'type'>>;
|
|
17
|
+
};
|
|
18
|
+
export declare const mediaPreviewField: (props?: MediaPreviewFieldOptions) => UIField;
|
package/dist/field.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export const mediaPreviewField = (props)=>{
|
|
2
|
+
const { adapterNames, contentMode, mode = 'auto', overrides } = props || {};
|
|
3
|
+
return {
|
|
4
|
+
// @ts-expect-error - Payload supports label as a function but types are incorrect
|
|
5
|
+
label: ({ t })=>t('@seshuk/payload-media-preview:label'),
|
|
6
|
+
...overrides,
|
|
7
|
+
name: 'mediaPreview',
|
|
8
|
+
type: 'ui',
|
|
9
|
+
admin: {
|
|
10
|
+
components: {
|
|
11
|
+
...overrides?.admin?.components || {},
|
|
12
|
+
Cell: {
|
|
13
|
+
clientProps: {
|
|
14
|
+
contentMode,
|
|
15
|
+
mode
|
|
16
|
+
},
|
|
17
|
+
path: '@seshuk/payload-media-preview/rsc#MediaPreviewCell',
|
|
18
|
+
serverProps: {
|
|
19
|
+
adapterNames
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
Field: {
|
|
23
|
+
clientProps: {
|
|
24
|
+
contentMode,
|
|
25
|
+
mode
|
|
26
|
+
},
|
|
27
|
+
path: '@seshuk/payload-media-preview/rsc#MediaPreview',
|
|
28
|
+
serverProps: {
|
|
29
|
+
adapterNames
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
...overrides?.admin || {}
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Config } from 'payload';
|
|
2
|
+
import type { MediaPreviewPluginConfig } from './types.js';
|
|
3
|
+
export { mediaPreviewField } from './field.js';
|
|
4
|
+
export type { MediaPreviewFieldOptions } from './field.js';
|
|
5
|
+
export type { AudioViewerProps, IframeViewerProps, ImageViewerProps, InsertPosition, MediaPreviewAdapter, MediaPreviewAdapterInlineResult, MediaPreviewAdapterNewTabResult, MediaPreviewAdapterResolveArgs, MediaPreviewAdapterResolveResult, MediaPreviewCollectionConfig, MediaPreviewContentMode, MediaPreviewContentModeType, MediaPreviewContentType, MediaPreviewFieldConfig, MediaPreviewMode, MediaPreviewPlugin, MediaPreviewPluginConfig, VideoViewerProps, } from './types.js';
|
|
6
|
+
export declare const mediaPreview: (pluginConfig: MediaPreviewPluginConfig) => (incomingConfig: Config) => Config;
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { mediaPreviewField } from "./field.js";
|
|
2
|
+
import { translations } from "./translations/index.js";
|
|
3
|
+
import { insertField } from "./utils/insertField.js";
|
|
4
|
+
export { mediaPreviewField } from "./field.js";
|
|
5
|
+
export const mediaPreview = (pluginConfig)=>(incomingConfig)=>{
|
|
6
|
+
if (pluginConfig.enabled === false) {
|
|
7
|
+
return incomingConfig;
|
|
8
|
+
}
|
|
9
|
+
const allAdapters = [
|
|
10
|
+
...pluginConfig.adapters ?? []
|
|
11
|
+
];
|
|
12
|
+
for (const [, collConfig] of Object.entries(pluginConfig.collections)){
|
|
13
|
+
if (collConfig && typeof collConfig === 'object' && collConfig.adapters) {
|
|
14
|
+
for (const adapter of collConfig.adapters){
|
|
15
|
+
if (!allAdapters.some((a)=>a.name === adapter.name)) {
|
|
16
|
+
allAdapters.push(adapter);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
const adapterDependencies = {};
|
|
22
|
+
for (const adapter of allAdapters){
|
|
23
|
+
if (adapter.Component) {
|
|
24
|
+
adapterDependencies[`media-preview-viewer-${adapter.name}`] = {
|
|
25
|
+
type: 'component',
|
|
26
|
+
path: adapter.Component
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
const finalConfig = {
|
|
31
|
+
...incomingConfig,
|
|
32
|
+
admin: {
|
|
33
|
+
...incomingConfig.admin,
|
|
34
|
+
dependencies: {
|
|
35
|
+
...incomingConfig.admin?.dependencies,
|
|
36
|
+
...adapterDependencies
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
collections: (incomingConfig.collections || []).map((collection)=>{
|
|
40
|
+
const collConfig = pluginConfig.collections[collection.slug];
|
|
41
|
+
if (!collConfig) {
|
|
42
|
+
return collection;
|
|
43
|
+
}
|
|
44
|
+
if (!collection.upload) {
|
|
45
|
+
return collection;
|
|
46
|
+
}
|
|
47
|
+
const resolved = collConfig === true ? {} : collConfig;
|
|
48
|
+
if (resolved.field === false) {
|
|
49
|
+
return collection;
|
|
50
|
+
}
|
|
51
|
+
const fieldConfig = typeof resolved.field === 'object' ? resolved.field : {};
|
|
52
|
+
const position = fieldConfig.position ?? 'last';
|
|
53
|
+
const collAdapters = resolved.adapters ?? pluginConfig.adapters;
|
|
54
|
+
const adapterNames = collAdapters?.map((a)=>a.name);
|
|
55
|
+
const fields = insertField(collection.fields, position, mediaPreviewField({
|
|
56
|
+
adapterNames,
|
|
57
|
+
contentMode: resolved.contentMode,
|
|
58
|
+
mode: resolved.mode,
|
|
59
|
+
overrides: fieldConfig.overrides
|
|
60
|
+
}));
|
|
61
|
+
return {
|
|
62
|
+
...collection,
|
|
63
|
+
fields
|
|
64
|
+
};
|
|
65
|
+
}),
|
|
66
|
+
custom: {
|
|
67
|
+
...incomingConfig.custom,
|
|
68
|
+
'@seshuk/payload-media-preview': {
|
|
69
|
+
adapters: allAdapters
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
i18n: {
|
|
73
|
+
...incomingConfig.i18n,
|
|
74
|
+
translations: {
|
|
75
|
+
...incomingConfig.i18n?.translations,
|
|
76
|
+
...Object.entries(translations).reduce((acc, [locale, i18nObject])=>{
|
|
77
|
+
const typedLocale = locale;
|
|
78
|
+
return {
|
|
79
|
+
...acc,
|
|
80
|
+
[typedLocale]: {
|
|
81
|
+
...incomingConfig.i18n?.translations?.[typedLocale],
|
|
82
|
+
'@seshuk/payload-media-preview': i18nObject?.['@seshuk/payload-media-preview']
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
}, {})
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
return finalConfig;
|
|
90
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AcceptedLanguages, DefaultTranslationKeys, NestedKeysStripped, TFunction } from '@payloadcms/translations';
|
|
2
|
+
import type { PluginDefaultTranslationsObject } from './types.js';
|
|
3
|
+
export declare const translations: {
|
|
4
|
+
[key in AcceptedLanguages]?: PluginDefaultTranslationsObject;
|
|
5
|
+
};
|
|
6
|
+
export type PluginMediaPreviewTranslations = typeof translations.en;
|
|
7
|
+
export type PluginMediaPreviewTranslationsKeys = NestedKeysStripped<PluginMediaPreviewTranslations>;
|
|
8
|
+
export type PluginMediaPreviewTFunction = TFunction<DefaultTranslationKeys | PluginMediaPreviewTranslationsKeys>;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { ar } from "./locales/ar.js";
|
|
2
|
+
import { az } from "./locales/az.js";
|
|
3
|
+
import { bg } from "./locales/bg.js";
|
|
4
|
+
import { bnBd } from "./locales/bnBd.js";
|
|
5
|
+
import { bnIn } from "./locales/bnIn.js";
|
|
6
|
+
import { ca } from "./locales/ca.js";
|
|
7
|
+
import { cs } from "./locales/cs.js";
|
|
8
|
+
import { da } from "./locales/da.js";
|
|
9
|
+
import { de } from "./locales/de.js";
|
|
10
|
+
import { en } from "./locales/en.js";
|
|
11
|
+
import { es } from "./locales/es.js";
|
|
12
|
+
import { et } from "./locales/et.js";
|
|
13
|
+
import { fa } from "./locales/fa.js";
|
|
14
|
+
import { fr } from "./locales/fr.js";
|
|
15
|
+
import { he } from "./locales/he.js";
|
|
16
|
+
import { hr } from "./locales/hr.js";
|
|
17
|
+
import { hu } from "./locales/hu.js";
|
|
18
|
+
import { hy } from "./locales/hy.js";
|
|
19
|
+
import { id } from "./locales/id.js";
|
|
20
|
+
import { is } from "./locales/is.js";
|
|
21
|
+
import { it } from "./locales/it.js";
|
|
22
|
+
import { ja } from "./locales/ja.js";
|
|
23
|
+
import { ko } from "./locales/ko.js";
|
|
24
|
+
import { lt } from "./locales/lt.js";
|
|
25
|
+
import { lv } from "./locales/lv.js";
|
|
26
|
+
import { my } from "./locales/my.js";
|
|
27
|
+
import { nb } from "./locales/nb.js";
|
|
28
|
+
import { nl } from "./locales/nl.js";
|
|
29
|
+
import { pl } from "./locales/pl.js";
|
|
30
|
+
import { pt } from "./locales/pt.js";
|
|
31
|
+
import { ro } from "./locales/ro.js";
|
|
32
|
+
import { rs } from "./locales/rs.js";
|
|
33
|
+
import { rsLatin } from "./locales/rsLatin.js";
|
|
34
|
+
import { ru } from "./locales/ru.js";
|
|
35
|
+
import { sk } from "./locales/sk.js";
|
|
36
|
+
import { sl } from "./locales/sl.js";
|
|
37
|
+
import { sv } from "./locales/sv.js";
|
|
38
|
+
import { ta } from "./locales/ta.js";
|
|
39
|
+
import { th } from "./locales/th.js";
|
|
40
|
+
import { tr } from "./locales/tr.js";
|
|
41
|
+
import { uk } from "./locales/uk.js";
|
|
42
|
+
import { vi } from "./locales/vi.js";
|
|
43
|
+
import { zh } from "./locales/zh.js";
|
|
44
|
+
import { zhTw } from "./locales/zhTw.js";
|
|
45
|
+
export const translations = {
|
|
46
|
+
id,
|
|
47
|
+
ar,
|
|
48
|
+
az,
|
|
49
|
+
bg,
|
|
50
|
+
'bn-BD': bnBd,
|
|
51
|
+
'bn-IN': bnIn,
|
|
52
|
+
ca,
|
|
53
|
+
cs,
|
|
54
|
+
da,
|
|
55
|
+
de,
|
|
56
|
+
en,
|
|
57
|
+
es,
|
|
58
|
+
et,
|
|
59
|
+
fa,
|
|
60
|
+
fr,
|
|
61
|
+
he,
|
|
62
|
+
hr,
|
|
63
|
+
hu,
|
|
64
|
+
hy,
|
|
65
|
+
is,
|
|
66
|
+
it,
|
|
67
|
+
ja,
|
|
68
|
+
ko,
|
|
69
|
+
lt,
|
|
70
|
+
lv,
|
|
71
|
+
my,
|
|
72
|
+
nb,
|
|
73
|
+
nl,
|
|
74
|
+
pl,
|
|
75
|
+
pt,
|
|
76
|
+
ro,
|
|
77
|
+
rs,
|
|
78
|
+
'rs-latin': rsLatin,
|
|
79
|
+
ru,
|
|
80
|
+
sk,
|
|
81
|
+
sl,
|
|
82
|
+
sv,
|
|
83
|
+
ta,
|
|
84
|
+
th,
|
|
85
|
+
tr,
|
|
86
|
+
uk,
|
|
87
|
+
vi,
|
|
88
|
+
zh,
|
|
89
|
+
'zh-TW': zhTw
|
|
90
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const bg = {
|
|
2
|
+
'@seshuk/payload-media-preview': {
|
|
3
|
+
close: 'Затвори',
|
|
4
|
+
label: 'Преглед',
|
|
5
|
+
open: 'Отвори',
|
|
6
|
+
titleAudio: 'Аудио преглед',
|
|
7
|
+
titleDocument: 'Преглед на документ',
|
|
8
|
+
titleImage: 'Преглед на изображение',
|
|
9
|
+
titleVideo: 'Видео преглед'
|
|
10
|
+
}
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const ca = {
|
|
2
|
+
'@seshuk/payload-media-preview': {
|
|
3
|
+
close: 'Tancar',
|
|
4
|
+
label: 'Vista prèvia',
|
|
5
|
+
open: 'Obrir',
|
|
6
|
+
titleAudio: 'Previsualització d\'àudio',
|
|
7
|
+
titleDocument: 'Previsualització de document',
|
|
8
|
+
titleImage: 'Previsualització d\'imatge',
|
|
9
|
+
titleVideo: 'Previsualització de vídeo'
|
|
10
|
+
}
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const da = {
|
|
2
|
+
'@seshuk/payload-media-preview': {
|
|
3
|
+
close: 'Luk',
|
|
4
|
+
label: 'Forhåndsvisning',
|
|
5
|
+
open: 'Åbn',
|
|
6
|
+
titleAudio: 'Lydforhåndsvisning',
|
|
7
|
+
titleDocument: 'Dokumentforhåndsvisning',
|
|
8
|
+
titleImage: 'Billedforhåndsvisning',
|
|
9
|
+
titleVideo: 'Videoforhåndsvisning'
|
|
10
|
+
}
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const de = {
|
|
2
|
+
'@seshuk/payload-media-preview': {
|
|
3
|
+
close: 'Schließen',
|
|
4
|
+
label: 'Vorschau',
|
|
5
|
+
open: 'Öffnen',
|
|
6
|
+
titleAudio: 'Audio-Vorschau',
|
|
7
|
+
titleDocument: 'Dokument-Vorschau',
|
|
8
|
+
titleImage: 'Bild-Vorschau',
|
|
9
|
+
titleVideo: 'Video-Vorschau'
|
|
10
|
+
}
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const es = {
|
|
2
|
+
'@seshuk/payload-media-preview': {
|
|
3
|
+
close: 'Cerrar',
|
|
4
|
+
label: 'Vista previa',
|
|
5
|
+
open: 'Abrir',
|
|
6
|
+
titleAudio: 'Vista previa de audio',
|
|
7
|
+
titleDocument: 'Vista previa de documento',
|
|
8
|
+
titleImage: 'Vista previa de imagen',
|
|
9
|
+
titleVideo: 'Vista previa de video'
|
|
10
|
+
}
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const he = {
|
|
2
|
+
'@seshuk/payload-media-preview': {
|
|
3
|
+
close: 'סגור',
|
|
4
|
+
label: 'תצוגה מקדימה',
|
|
5
|
+
open: 'פתח',
|
|
6
|
+
titleAudio: 'תצוגה מקדימה של שמע',
|
|
7
|
+
titleDocument: 'תצוגה מקדימה של מסמך',
|
|
8
|
+
titleImage: 'תצוגה מקדימה של תמונה',
|
|
9
|
+
titleVideo: 'תצוגה מקדימה של וידאו'
|
|
10
|
+
}
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const hu = {
|
|
2
|
+
'@seshuk/payload-media-preview': {
|
|
3
|
+
close: 'Bezárás',
|
|
4
|
+
label: 'Előnézet',
|
|
5
|
+
open: 'Megnyitás',
|
|
6
|
+
titleAudio: 'Hanganyag előnézet',
|
|
7
|
+
titleDocument: 'Dokumentum előnézet',
|
|
8
|
+
titleImage: 'Kép előnézet',
|
|
9
|
+
titleVideo: 'Videó előnézet'
|
|
10
|
+
}
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const hy = {
|
|
2
|
+
'@seshuk/payload-media-preview': {
|
|
3
|
+
close: 'Փակել',
|
|
4
|
+
label: 'Նախադիտում',
|
|
5
|
+
open: 'Բացել',
|
|
6
|
+
titleAudio: 'Աուդիո նախադիտում',
|
|
7
|
+
titleDocument: 'Փաստաթղթի նախադիտում',
|
|
8
|
+
titleImage: 'Նկարի նախադիտում',
|
|
9
|
+
titleVideo: 'Վիդեո նախադիտում'
|
|
10
|
+
}
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const id = {
|
|
2
|
+
'@seshuk/payload-media-preview': {
|
|
3
|
+
close: 'Tutup',
|
|
4
|
+
label: 'Pratinjau',
|
|
5
|
+
open: 'Buka',
|
|
6
|
+
titleAudio: 'Pratinjau audio',
|
|
7
|
+
titleDocument: 'Pratinjau dokumen',
|
|
8
|
+
titleImage: 'Pratinjau gambar',
|
|
9
|
+
titleVideo: 'Pratinjau video'
|
|
10
|
+
}
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const it = {
|
|
2
|
+
'@seshuk/payload-media-preview': {
|
|
3
|
+
close: 'Chiudi',
|
|
4
|
+
label: 'Anteprima',
|
|
5
|
+
open: 'Apri',
|
|
6
|
+
titleAudio: 'Anteprima audio',
|
|
7
|
+
titleDocument: 'Anteprima documento',
|
|
8
|
+
titleImage: 'Anteprima immagine',
|
|
9
|
+
titleVideo: 'Anteprima video'
|
|
10
|
+
}
|
|
11
|
+
};
|