@gravito/cosmos 3.2.0 → 3.2.1
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/CHANGELOG.md +15 -0
- package/package.json +3 -3
- package/src/I18nService.ts +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @gravito/cosmos
|
|
2
2
|
|
|
3
|
+
## 3.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Convert all workspace:\* dependencies to version numbers for npm publishing
|
|
8
|
+
|
|
9
|
+
- Fixed 144 workspace:\* dependencies across 58 packages
|
|
10
|
+
- Ensures all packages work properly when installed from npm
|
|
11
|
+
- Resolves issues with bunx and npm installation of CLI tools
|
|
12
|
+
- All internal dependencies now use explicit version constraints
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
- @gravito/core@1.6.1
|
|
16
|
+
- @gravito/photon@1.0.1
|
|
17
|
+
|
|
3
18
|
## 3.0.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravito/cosmos",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"description": "Internationalization orbit for Gravito framework",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"author": "Carl Lee <carllee0520@gmail.com>",
|
|
43
43
|
"license": "MIT",
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@gravito/core": "
|
|
46
|
-
"@gravito/photon": "
|
|
45
|
+
"@gravito/core": "^1.6.1",
|
|
46
|
+
"@gravito/photon": "^1.0.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"bun-types": "latest",
|
package/src/I18nService.ts
CHANGED
|
@@ -756,7 +756,8 @@ export class I18nManager<Schema = TranslationMap> implements I18nService<Schema>
|
|
|
756
756
|
if (!this.pluralRules.has(locale)) {
|
|
757
757
|
this.pluralRules.set(locale, new Intl.PluralRules(locale))
|
|
758
758
|
}
|
|
759
|
-
|
|
759
|
+
const rule = this.pluralRules.get(locale)
|
|
760
|
+
return rule?.select(count) ?? 'other'
|
|
760
761
|
}
|
|
761
762
|
|
|
762
763
|
/**
|