@markuplint/i18n 3.0.0-rc.1 → 3.0.0-rc.3
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/$schema.json +1 -0
- package/lib/translator.d.ts +1 -3
- package/lib/types.d.ts +8 -8
- package/locales/ja.json +1 -0
- package/package.json +2 -2
package/$schema.json
CHANGED
|
@@ -171,6 +171,7 @@
|
|
|
171
171
|
"{0} chars": { "type": "string" },
|
|
172
172
|
"{0} contradicts {1}": { "type": "string" },
|
|
173
173
|
"{0} digits": { "type": "string" },
|
|
174
|
+
"{0} disallows {1}": { "type": "string" },
|
|
174
175
|
"{0} does not exist": { "type": "string" },
|
|
175
176
|
"{0} expects {1:c}": { "type": "string" },
|
|
176
177
|
"{0} expects {1}": { "type": "string" },
|
package/lib/translator.d.ts
CHANGED
|
@@ -3,6 +3,4 @@ export declare function translator(localeSet?: LocaleSet): Translator;
|
|
|
3
3
|
/**
|
|
4
4
|
* @experimental
|
|
5
5
|
*/
|
|
6
|
-
export declare function taggedTemplateTranslator(
|
|
7
|
-
localeSet?: LocaleSet,
|
|
8
|
-
): (strings: TemplateStringsArray, ...keys: Primitive[]) => string;
|
|
6
|
+
export declare function taggedTemplateTranslator(localeSet?: LocaleSet): (strings: TemplateStringsArray, ...keys: Primitive[]) => string;
|
package/lib/types.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export type Translator = (messageTmpl: string | string[], ...keywords: Primitive[]) => string;
|
|
2
2
|
export type LocaleSet = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
locale: string;
|
|
4
|
+
listFormat?: ListFormat;
|
|
5
|
+
keywords?: LocalesKeywords;
|
|
6
|
+
sentences?: LocalesKeywords;
|
|
7
7
|
};
|
|
8
8
|
export type ListFormat = {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
quoteStart: string;
|
|
10
|
+
quoteEnd: string;
|
|
11
|
+
separator: string;
|
|
12
12
|
};
|
|
13
13
|
export type Primitive = string | number | boolean;
|
|
14
14
|
export type LocalesKeywords = {
|
|
15
|
-
|
|
15
|
+
[messageId: string]: string | void;
|
|
16
16
|
};
|
package/locales/ja.json
CHANGED
|
@@ -155,6 +155,7 @@
|
|
|
155
155
|
"{0} chars": "{0}文字",
|
|
156
156
|
"{0} contradicts {1}": "{0}は{1}と矛盾しています",
|
|
157
157
|
"{0} digits": "{0}桁",
|
|
158
|
+
"{0} disallows {1}": "{0}は{1}を許可しません",
|
|
158
159
|
"{0} does not exist": "{0}は存在しません",
|
|
159
160
|
"{0} expects {1:c}": "{0}は{1}である必要があります",
|
|
160
161
|
"{0} expects {1}": "{0}には{1}が必要です",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markuplint/i18n",
|
|
3
|
-
"version": "3.0.0-rc.
|
|
3
|
+
"version": "3.0.0-rc.3",
|
|
4
4
|
"description": "HTML parser for markuplint",
|
|
5
5
|
"repository": "git@github.com:markuplint/markuplint.git",
|
|
6
6
|
"author": "Yusuke Hirao <yusukehirao@me.com>",
|
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
"build": "tsc",
|
|
16
16
|
"clean": "tsc --build --clean"
|
|
17
17
|
},
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "6cb4f1656d4cd7554891006181c1f79cea4d9bfa"
|
|
19
19
|
}
|