l-min-components 1.0.844 → 1.0.848
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/package.json
CHANGED
|
@@ -288,10 +288,12 @@ const SideMenu = ({
|
|
|
288
288
|
: (window.location.href = `https://developer.learngual.com${path}`);
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
-
if (
|
|
292
|
-
window.location.
|
|
293
|
-
|
|
294
|
-
|
|
291
|
+
if (!newTab) {
|
|
292
|
+
if (window.location.hostname.includes("559staging")) {
|
|
293
|
+
window.location.href = `https://559staging.learngual.com${path}`;
|
|
294
|
+
} else if (window.location.hostname.includes("localhost")) {
|
|
295
|
+
window.location.href = `http://localhost:${window.location.port}${path}`;
|
|
296
|
+
}
|
|
295
297
|
}
|
|
296
298
|
}}
|
|
297
299
|
// to={route.path}
|
|
@@ -308,7 +310,8 @@ const SideMenu = ({
|
|
|
308
310
|
// : ""
|
|
309
311
|
}`
|
|
310
312
|
)}
|
|
311
|
-
minimal={isOpen}
|
|
313
|
+
minimal={isOpen}
|
|
314
|
+
>
|
|
312
315
|
<IconContainer active={active}>
|
|
313
316
|
{active ? iconActive : icon}
|
|
314
317
|
</IconContainer>
|
|
@@ -74,7 +74,7 @@ const useTranslation = () => {
|
|
|
74
74
|
};
|
|
75
75
|
|
|
76
76
|
export function formatSentence(sentence, kwargs) {
|
|
77
|
-
console.log(sentence);
|
|
77
|
+
// console.log(sentence);
|
|
78
78
|
// Use replace with a regular expression and a callback function
|
|
79
79
|
const finalSentence = sentence.replace(/\{(\w+)\}/g, (match, key) => {
|
|
80
80
|
// If the key exists in kwargs, replace it with the corresponding value
|
|
@@ -17,7 +17,7 @@ async function loadTranslations(language = "en", setIsLoading) {
|
|
|
17
17
|
* @type {WORDS[]}
|
|
18
18
|
*/
|
|
19
19
|
const words = await db.words.toArray();
|
|
20
|
-
const texts = words.map((x) => x.text !== "" && x.text).filter((x) => x); // list of texts
|
|
20
|
+
const texts = words.map((x) => x.text.trim() !== "" && x.text).filter((x) => x); // list of texts
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* @typedef {{ key: string; value: string; screenId: string }} Kwarg
|