@coffic/cosy-ui 0.9.7 → 0.9.9
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/README.md +3 -3
- package/dist/src/utils/language.ts +7 -3
- package/package.json +3 -3
package/README.md
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
|
3
3
|
[](README.md)
|
4
4
|
[](docs/README-zh.md)
|
5
|
-
[](https://github.com/yuaotian/go-cursor-help/releases/latest)
|
6
6
|
[](README-dev.md)
|
7
7
|
[](https://www.npmjs.com/package/@coffic/cosy-ui)
|
8
8
|

|
9
9
|

|
10
10
|
[](https://coffic.cn)
|
11
11
|
[](https://github.com/nookery)
|
12
|
-

|
13
13
|
|
14
14
|
This is an Astro component library that provides a unified UI style for multiple projects under the same organization.
|
15
15
|
|
@@ -28,4 +28,4 @@ Usage in Astro components:
|
|
28
28
|
import { Button } from "@coffic/cosy-ui";
|
29
29
|
---
|
30
30
|
<Button>Hi</Button>
|
31
|
-
```
|
31
|
+
```
|
@@ -93,8 +93,12 @@ export class LanguageUtil {
|
|
93
93
|
private static getLanguageFromBrowser(): string | undefined {
|
94
94
|
if (typeof navigator === 'undefined') return undefined;
|
95
95
|
|
96
|
-
|
97
|
-
|
98
|
-
|
96
|
+
const browserLang = navigator.language;
|
97
|
+
|
98
|
+
if (browserLang) {
|
99
|
+
return browserLang.toLowerCase();
|
100
|
+
}
|
101
|
+
|
102
|
+
return undefined;
|
99
103
|
}
|
100
104
|
}
|
package/package.json
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"name": "@coffic/cosy-ui",
|
3
|
-
"version": "0.9.
|
3
|
+
"version": "0.9.9",
|
4
4
|
"description": "An astro component library",
|
5
5
|
"author": {
|
6
6
|
"name": "nookery",
|
7
7
|
"url": "https://github.com/nookery"
|
8
8
|
},
|
9
9
|
"repository": {
|
10
|
-
"url": "https://github.com/
|
10
|
+
"url": "https://github.com/CosyZone/cosy-ui"
|
11
11
|
},
|
12
12
|
"license": "MIT",
|
13
13
|
"keywords": [
|
@@ -17,7 +17,7 @@
|
|
17
17
|
"astro",
|
18
18
|
"cosy-ui"
|
19
19
|
],
|
20
|
-
"homepage": "https://
|
20
|
+
"homepage": "https://cosyzone.github.io/cosy-ui/en/",
|
21
21
|
"publishConfig": {
|
22
22
|
"access": "public"
|
23
23
|
},
|