-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathfile_translation.ui_patterns.yml
67 lines (67 loc) · 2.22 KB
/
file_translation.ui_patterns.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
file_translation:
label: "File with translations"
description: "File download component with the available translations."
fields:
button_label:
type: "text"
label: "Label"
description: "Download button label."
preview: "Download"
file:
type: "FileValueObject"
label: "File"
description: "A file value object."
preview:
title: "Example document"
mime: "application/pdf"
url: "http://example.com/document.pdf"
size: "150000"
name: "document.pdf"
language_code: "en"
link_attributes:
type: "array"
label: "The download link attributes"
description: "Any additional attributes to be added to the file download link."
preview:
- "name": "data-attribute-foo"
"value": "bar"
translations:
type: "array"
label: "Files"
description: "List of FileValueObject objects."
preview:
- mime: "application/pdf"
url: "http://example.com/document_fr.pdf"
size: "150000"
name: "document.pdf"
language_code: "fr"
- mime: "application/pdf"
url: "http://example.com/document_it.pdf"
size: "160000"
name: "document.pdf"
language_code: "it"
- mime: "application/pdf"
url: "http://example.com/document_hu.pdf"
size: "170000"
name: "document.pdf"
language_code: "hu"
- mime: "application/pdf"
url: "http://example.com/document_pt.pdf"
size: "180000"
name: "document.pdf"
language_code: "pt-pt"
translation_toggle_label:
type: "text"
label: "Translation toggle label"
description: "Toggle label used for collapsing or expanding the available translations."
preview: "Other languages"
more_info:
type: "text"
label: "More information (deprecated - to be removed in 5.x)"
description: "Informative text about the available translations."
preview: "Looking for another language which is not on the list? Find out why."
publication_date:
type: "text"
label: "Publication date"
description: "Document publication date"
preview: "31 August 2020"