spoko-design-system 0.2.78 → 0.2.80
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/index.ts +1 -1
- package/package.json +2 -2
- package/src/utils/text.ts +5 -5
package/index.ts
CHANGED
|
@@ -57,7 +57,7 @@ export { default as getShorterDescription } from './src/utils/seo/getShorterDesc
|
|
|
57
57
|
|
|
58
58
|
// Utils: Text
|
|
59
59
|
|
|
60
|
-
export {
|
|
60
|
+
export { text2paragraphs, countWords, firstSentence, removeSemicolon } from './src/utils/text';
|
|
61
61
|
export { default as formatDate } from './src/utils/text/formatDate';
|
|
62
62
|
export { default as formatLocaleNumber } from './src/utils/text/formatLocaleNumber';
|
|
63
63
|
export { default as formatPad } from './src/utils/text/formatPad';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spoko-design-system",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.80",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "./index.ts",
|
|
6
6
|
"module": "./index.ts",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@iconify-json/ph": "^1.2.1",
|
|
63
63
|
"@iconify-json/simple-icons": "^1.2.11",
|
|
64
64
|
"@iconify-json/uil": "^1.2.1",
|
|
65
|
-
"@iconify/json": "^2.2.
|
|
65
|
+
"@iconify/json": "^2.2.273",
|
|
66
66
|
"@iconify/vue": "^4.1.2",
|
|
67
67
|
"@playform/compress": "^0.1.6",
|
|
68
68
|
"@playform/inline": "github:playform/inline",
|
package/src/utils/text.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import i18next, { t } from "i18next";
|
|
1
|
+
// import i18next, { t } from "i18next";
|
|
2
2
|
|
|
3
3
|
// import { t } from "i18next";
|
|
4
4
|
|
|
5
|
-
export const getTranslation = (translationKey: string) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
5
|
+
// export const getTranslation = (translationKey: string) => {
|
|
6
|
+
// // console.log('search translation for', translationKey, t(translationKey))
|
|
7
|
+
// return i18next.exists(translationKey) ? t(translationKey) : `missing ${translationKey}`
|
|
8
|
+
// }
|
|
9
9
|
|
|
10
10
|
export const text2paragraphs = (text: string, firstLineBottomMargin: boolean = false) => {
|
|
11
11
|
// return '<p class="mb-2">' + text.split(/[\n\r]+/g).join('</p><p>') + '</p>'
|