@markuplint/i18n 4.5.1 → 4.5.2
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 +5 -1
- package/cjs/translator.js +1 -1
- package/esm/translator.mjs +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## [4.5.
|
|
6
|
+
## [4.5.2](https://github.com/markuplint/markuplint/compare/@markuplint/i18n@4.5.1...@markuplint/i18n@4.5.2) (2024-09-02)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @markuplint/i18n
|
|
9
9
|
|
|
@@ -11,6 +11,10 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
+
## [4.5.1](https://github.com/markuplint/markuplint/compare/@markuplint/i18n@4.5.0...@markuplint/i18n@4.5.1) (2024-06-25)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @markuplint/i18n
|
|
17
|
+
|
|
14
18
|
# [4.5.0](https://github.com/markuplint/markuplint/compare/@markuplint/i18n@4.5.0-alpha.0...@markuplint/i18n@4.5.0) (2024-05-04)
|
|
15
19
|
|
|
16
20
|
**Note:** Version bump only for package @markuplint/i18n
|
package/cjs/translator.js
CHANGED
|
@@ -17,7 +17,7 @@ function translator(localeSet) {
|
|
|
17
17
|
}
|
|
18
18
|
const format = localeSet?.listFormat ?? defaultListFormat;
|
|
19
19
|
const useLastSeparator = keywords[0] == null || keywords[0] == false ? false : true;
|
|
20
|
-
const lastSeparator = useLastSeparator ? format.lastSeparator ?? format.separator : format.separator;
|
|
20
|
+
const lastSeparator = useLastSeparator ? (format.lastSeparator ?? format.separator) : format.separator;
|
|
21
21
|
const list = messageTmpl.map(keyword => format.quoteStart + translateKeyword(keyword, '', localeSet) + format.quoteEnd);
|
|
22
22
|
if (list.length === 1) {
|
|
23
23
|
return list[0];
|
package/esm/translator.mjs
CHANGED
|
@@ -13,7 +13,7 @@ export function translator(localeSet) {
|
|
|
13
13
|
}
|
|
14
14
|
const format = localeSet?.listFormat ?? defaultListFormat;
|
|
15
15
|
const useLastSeparator = keywords[0] == null || keywords[0] == false ? false : true;
|
|
16
|
-
const lastSeparator = useLastSeparator ? format.lastSeparator ?? format.separator : format.separator;
|
|
16
|
+
const lastSeparator = useLastSeparator ? (format.lastSeparator ?? format.separator) : format.separator;
|
|
17
17
|
const list = messageTmpl.map(keyword => format.quoteStart + translateKeyword(keyword, '', localeSet) + format.quoteEnd);
|
|
18
18
|
if (list.length === 1) {
|
|
19
19
|
return list[0];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markuplint/i18n",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.2",
|
|
4
4
|
"description": "Internationalization for markuplint",
|
|
5
5
|
"repository": "git@github.com:markuplint/markuplint.git",
|
|
6
6
|
"author": "Yusuke Hirao <yusukehirao@me.com>",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"build:cjs": "tsc --module commonjs --outDir cjs",
|
|
38
38
|
"clean": "tsc --build --clean"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "77cd5a25d5cf28c83253b7bfe02cd25b54e236b0"
|
|
41
41
|
}
|