spoko-design-system 0.2.73 → 0.2.74

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spoko-design-system",
3
- "version": "0.2.73",
3
+ "version": "0.2.74",
4
4
  "private": false,
5
5
  "main": "./index.ts",
6
6
  "module": "./index.ts",
@@ -37,13 +37,13 @@
37
37
  "spoko design system"
38
38
  ],
39
39
  "dependencies": {
40
- "@algolia/client-search": "^5.13.0",
40
+ "@algolia/client-search": "^5.14.0",
41
41
  "@astrojs/mdx": "^3.1.9",
42
42
  "@astrojs/node": "^8.3.4",
43
43
  "@astrojs/sitemap": "^3.2.1",
44
44
  "@astrojs/ts-plugin": "^1.10.4",
45
45
  "@astrojs/vue": "^4.5.2",
46
- "@docsearch/css": "^3.7.0",
46
+ "@docsearch/css": "^3.8.0",
47
47
  "@iconify-json/ant-design": "^1.2.2",
48
48
  "@iconify-json/bi": "^1.2.1",
49
49
  "@iconify-json/bx": "^1.2.1",
@@ -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.271",
65
+ "@iconify/json": "^2.2.272",
66
66
  "@iconify/vue": "^4.1.2",
67
67
  "@playform/compress": "^0.1.6",
68
68
  "@playform/inline": "github:playform/inline",
@@ -95,8 +95,8 @@
95
95
  },
96
96
  "devDependencies": {
97
97
  "@unocss/transformer-variant-group": "^0.64.0",
98
- "@vitejs/plugin-vue": "^5.1.5",
99
- "astro": "^4.16.10",
98
+ "@vitejs/plugin-vue": "^5.2.0",
99
+ "astro": "^4.16.12",
100
100
  "unocss": "^0.60.0"
101
101
  },
102
102
  "packageManager": "pnpm@9.8.0",
@@ -39,7 +39,7 @@ const activeIndex = activeCategorySlug && categories ? categories.map(a => a.slu
39
39
  <swiper-slide itemprop="hasPart" role="presentation"
40
40
  class={`swiper-slide cats-slide group ${category.slug === activeCategorySlug ? 'active': ''}`}
41
41
  >
42
- <a href={getTranslatedLink(`/${category.slug}/`)}
42
+ <a href={getTranslatedLink(`/${category.slug}/`, i18next.language)}
43
43
  class="carousel-item"
44
44
  >
45
45
  {
@@ -14,13 +14,13 @@ interface CategoryObject {
14
14
  }
15
15
 
16
16
  let inputProps = {};
17
- const { CategoryObject } = Astro.props as { CategoryObject: CategoryObject };
17
+ const { CategoryObject, locale } = Astro.props as { CategoryObject: CategoryObject, locale: string };
18
18
  CategoryObject.height = CategoryObject.height ?? 70;
19
19
  CategoryObject.width = CategoryObject.width ?? 70;
20
20
  ---
21
21
 
22
22
  <a
23
- href={getTranslatedLink(`/${CategoryObject.slug}/`)}
23
+ href={getTranslatedLink(`/${CategoryObject.slug}/`, locale)}
24
24
  class="carousel-item"
25
25
  data-astro-prefetch
26
26
  {...inputProps}
@@ -1,7 +1,5 @@
1
- import i18next from "i18next";
2
-
3
- export const getTranslatedLink = ( link:string ) => {
4
- return i18next.language === 'en' ? link : `/pl${link}`
1
+ export const getTranslatedLink = ( link:string, locale='en' ) => {
2
+ return locale === 'en' ? link : `/${locale}${link}`
5
3
  }
6
4
 
7
5
  export default getTranslatedLink;