@bigbinary/neeto-themes-frontend 4.0.21 → 4.0.22

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.
@@ -159,6 +159,51 @@
159
159
  "helpText": "Separate options using commas or line breaks. <Link>View help article</Link> for more information."
160
160
  }
161
161
  }
162
+ },
163
+ "properties": {
164
+ "color": {
165
+ "questionColor": "Questions color",
166
+ "answerColor": "Answer color",
167
+ "buttonBackgroundColor": "Button background color",
168
+ "buttonTextColor": "Button text color",
169
+ "backgroundColor": "Background color",
170
+ "contentBackgroundColor": "Content background color",
171
+ "primaryColor": "Primary color",
172
+ "secondaryColor": "Secondary color",
173
+ "primaryTextColor": "Primary text color",
174
+ "secondaryTextColor": "Secondary text color",
175
+ "cardBackgroundColor": "Card background color",
176
+ "cardTextColor": "Card text color",
177
+ "linkColor": "Link color"
178
+ },
179
+ "boolean": {
180
+ "isContentBackgroundEnabled": "Enable content background",
181
+ "isDominantBackgroundColorEnabled": "Dominant background color",
182
+ "isDominantBackgroundColorEnabledHelpText": "Enabling this option will update the background color to the dominant color from the background image."
183
+ },
184
+ "radius": {
185
+ "buttonBorderRadius": "Button border radius"
186
+ },
187
+ "image": {
188
+ "backgroundImage": "Background image",
189
+ "logo": "Logo",
190
+ "logoPosition": "Logo position",
191
+ "coverImage": "Cover image"
192
+ },
193
+ "overlayOpacity": {
194
+ "background": "Background overlay"
195
+ },
196
+ "fontFamily": {
197
+ "euiFontFamily": "Font"
198
+ },
199
+ "positionSelector": {
200
+ "backgroundImagePosition": "Background image position"
201
+ },
202
+ "alignmentBlock": {
203
+ "thankYouTextAlignment": "Thank you text alignment",
204
+ "welcomeTextAlignment": "Welcome text alignment",
205
+ "questionsTextAlignment": "Questions text alignment"
206
+ }
162
207
  }
163
208
  }
164
209
  }
@@ -1,3 +1,110 @@
1
+ import i18n from "i18next";
2
+
3
+ import ar from "./ar.json";
4
+ import bg from "./bg.json";
5
+ import ca from "./ca.json";
6
+ import cs from "./cs.json";
7
+ import da from "./da.json";
8
+ import de from "./de.json";
1
9
  import en from "./en.json";
10
+ import esMx from "./es-MX.json";
11
+ import es from "./es.json";
12
+ import et from "./et.json";
13
+ import fi from "./fi.json";
14
+ import fil from "./fil.json";
15
+ import fr from "./fr.json";
16
+ import he from "./he.json";
17
+ import hi from "./hi.json";
18
+ import hr from "./hr.json";
19
+ import hu from "./hu.json";
20
+ import id from "./id.json";
21
+ import it from "./it.json";
22
+ import ja from "./ja.json";
23
+ import ko from "./ko.json";
24
+ import nl from "./nl.json";
25
+ import pl from "./pl.json";
26
+ import ptBr from "./pt-BR.json";
27
+ import pt from "./pt.json";
28
+ import ro from "./ro.json";
29
+ import ru from "./ru.json";
30
+ import sk from "./sk.json";
31
+ import sl from "./sl.json";
32
+ import sv from "./sv.json";
33
+ import th from "./th.json";
34
+ import tr from "./tr.json";
35
+ import uk from "./uk.json";
36
+ import vi from "./vi.json";
37
+ import zhCn from "./zh-CN.json";
38
+ import zhTw from "./zh-TW.json";
39
+
40
+ const translations = {
41
+ ar,
42
+ bg,
43
+ ca,
44
+ cs,
45
+ da,
46
+ de,
47
+ en,
48
+ "es-MX": esMx,
49
+ es,
50
+ et,
51
+ fi,
52
+ fil,
53
+ fr,
54
+ he,
55
+ hi,
56
+ hr,
57
+ hu,
58
+ id,
59
+ it,
60
+ ja,
61
+ ko,
62
+ nl,
63
+ pl,
64
+ "pt-BR": ptBr,
65
+ pt,
66
+ ro,
67
+ ru,
68
+ sk,
69
+ sl,
70
+ sv,
71
+ th,
72
+ tr,
73
+ uk,
74
+ vi,
75
+ "zh-CN": zhCn,
76
+ "zh-TW": zhTw,
77
+ };
78
+
79
+ const registeredLanguagesByI18nInstance = new WeakMap();
80
+
81
+ const getRegisteredLanguages = i18nInstance => {
82
+ if (!registeredLanguagesByI18nInstance.has(i18nInstance)) {
83
+ registeredLanguagesByI18nInstance.set(i18nInstance, new Set());
84
+ }
85
+
86
+ return registeredLanguagesByI18nInstance.get(i18nInstance);
87
+ };
88
+
89
+ const registerNeetoThemesTranslations = (
90
+ i18nInstance = i18n,
91
+ { overwrite = false } = {}
92
+ ) => {
93
+ const registeredLanguages = getRegisteredLanguages(i18nInstance);
94
+
95
+ Object.entries(translations).forEach(([language, translation]) => {
96
+ if (!overwrite && registeredLanguages.has(language)) return;
97
+
98
+ i18nInstance.addResourceBundle(
99
+ language,
100
+ "translation",
101
+ translation,
102
+ true,
103
+ overwrite
104
+ );
105
+
106
+ registeredLanguages.add(language);
107
+ });
108
+ };
2
109
 
3
- export { en };
110
+ export { en, translations, registerNeetoThemesTranslations };
package/dist/.ready CHANGED
@@ -1 +1 @@
1
- Built at 2026-05-29T18:58:07.552Z
1
+ Built at 2026-06-16T19:19:02.789Z