ublo-lib 1.18.5 → 1.18.7
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.
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
display: flex;
|
|
43
43
|
align-items: center;
|
|
44
44
|
justify-content: flex-end;
|
|
45
|
+
gap: 8px;
|
|
45
46
|
margin-top: 20px;
|
|
46
47
|
}
|
|
47
48
|
|
|
@@ -63,11 +64,7 @@
|
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
.resetButton {
|
|
66
|
-
margin-right:
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.submitButton {
|
|
70
|
-
margin-left: auto;
|
|
67
|
+
margin-right: auto;
|
|
71
68
|
}
|
|
72
69
|
|
|
73
70
|
.sendingOverlay {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const DEFAULT_MESSAGES = {
|
|
2
2
|
fr: {
|
|
3
3
|
"what-are-you-looking-for": "Que recherchez-vous ?",
|
|
4
4
|
"no-results": "Pas de résultats..."
|
|
@@ -6,10 +6,14 @@ const locales = {
|
|
|
6
6
|
en: {
|
|
7
7
|
"what-are-you-looking-for": "What are you looking for?",
|
|
8
8
|
"no-results": "No results..."
|
|
9
|
+
},
|
|
10
|
+
es: {
|
|
11
|
+
"what-are-you-looking-for": "¿Qué estás buscando?",
|
|
12
|
+
"no-results": "No hay resultados..."
|
|
9
13
|
}
|
|
10
14
|
};
|
|
11
|
-
export const message = (lang, id, messages =
|
|
12
|
-
|
|
13
|
-
const langMessages = messages[
|
|
15
|
+
export const message = (lang, id, messages = DEFAULT_MESSAGES) => {
|
|
16
|
+
const locale = !messages[lang] ? "en" : lang;
|
|
17
|
+
const langMessages = messages[locale];
|
|
14
18
|
return langMessages[id] || `??${id}??`;
|
|
15
19
|
};
|