-
Notifications
You must be signed in to change notification settings - Fork 19
/
labels.LAN.example.js
126 lines (101 loc) · 2.86 KB
/
labels.LAN.example.js
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
/*
Us this template to add more languages to the translator -
see ./translator.js
- use the template for the list of currently available labels
- save it as labels.LAN.js // replace LAN with your actual value, e.g. es, de, ru, etc.
- fill in the labels translations
- add to webpack config options as
'options.i18n.fr': './options/lang/labels.fr.js'
(see webpack.common.js as example)
You can then call iframely.optionsTranslator('LAN') - with your chosen language - to build the options form
You don't need to translate all the labels. The ones without a translation will be left as-is
*/
var translator = require('../translator');
var lang ='LAN';
var labels = {
// general options
'Slimmer horizontal player': '',
'Include playlist': '',
'Hide artwork': '',
'Theme color': '',
'Light': '',
'Dark': '',
'Auto': '',
'Default': '',
'Adjust height': '',
'Active page': '',
// Codepen
'Use click-to-load': '',
'ex.: 600, in px': '',
//Instagram
'Hide timed comments': '',
//Soundcloud
'Let Iframely optimize player for the artwork': '',
// scribd
'Show as slideshow': '',
// youtube
'Start from': '',
'ex.: 11, 1m10s': '',
'End on': '',
'Closed captions': '',
// twitter
'Include up to 20 tweets': '',
'Hide photos, videos, and cards': '',
'Hide previous Tweet in conversation thread': '',
'Use dark theme': '',
'Adjust width': '',
// pinterest
'Hide description': '',
//mixcloud
'Widget style': '',
'Mini': '',
'Classic': '',
'Picture': '',
//google maps
'Zoom': '',
'Map orientation': '',
'Album': '',
'Portrait': '',
'Square': '',
// Flickr
'Show context slideshow': '',
'Show description footer': '',
'Show user header': '',
//facebook
'Show author\'s text caption': '',
'Hide author\'s text caption': '',
'Include parent comment (if url is a reply)': '',
'Show recent posts': '',
'Show profile photos when friends like this': '',
'Use the small header instead': '',
//bandcamp
'Artwork': '',
'Small': '',
'Big': '',
'None': '',
'Layout': '',
'Slim': '',
'Artwork-only': '',
'Standard': '',
//omny.fm
'Size & style': '',
'Wide image': '',
'Wide simple': '',
// Vimeo
'Text language (ignored if no captions)': '',
'Two letters: en, fr, es, de...': '',
// Kickstarter
'Don\'t include attached player': '',
'Attached player only, no card': '',
//iframely options
'Hold load & play until clicked': '',
'Make it a small card': '',
//iframely media cards
'Keep using full media card': '',
'Don\'t include player': '',
'Player only, no card': '',
//iframely media=1
'Just the player': '',
'Just the image': ''
};
translator.registerLabels(lang, labels);