@markuplint/i18n 3.8.0 → 3.10.0
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
|
@@ -268,6 +268,7 @@
|
|
|
268
268
|
"the list of {0}": { "type": "string" },
|
|
269
269
|
"the max number of elements required is {0}": { "type": "string" },
|
|
270
270
|
"the same {0} as {1}": { "type": "string" },
|
|
271
|
+
"the user agent will automatically use \"{0}\" instead": { "type": "string" },
|
|
271
272
|
"there is more content than it needs": { "type": "string" },
|
|
272
273
|
"unexpected {0}": { "type": "string" },
|
|
273
274
|
"unique {0}": { "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: Readonly<TemplateStringsArray>, ...keys: readonly Primitive[]) => string;
|
|
6
|
+
export declare function taggedTemplateTranslator(localeSet?: LocaleSet): (strings: Readonly<TemplateStringsArray>, ...keys: readonly Primitive[]) => string;
|
package/lib/types.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export type Translator = (messageTmpl: string | readonly string[], ...keywords: readonly Primitive[]) => string;
|
|
2
2
|
export type LocaleSet = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
readonly locale: string;
|
|
4
|
+
readonly listFormat?: ListFormat;
|
|
5
|
+
readonly keywords?: LocalesKeywords;
|
|
6
|
+
readonly sentences?: LocalesKeywords;
|
|
7
7
|
};
|
|
8
8
|
export type ListFormat = {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
readonly quoteStart: string;
|
|
10
|
+
readonly quoteEnd: string;
|
|
11
|
+
readonly separator: string;
|
|
12
12
|
};
|
|
13
13
|
export type Primitive = string | number | boolean;
|
|
14
14
|
export type LocalesKeywords = {
|
|
15
|
-
|
|
15
|
+
readonly [messageId: string]: string;
|
|
16
16
|
};
|
package/locales/ja.json
CHANGED
|
@@ -250,6 +250,7 @@
|
|
|
250
250
|
"the list of {0}": "{0}のリスト",
|
|
251
251
|
"the max number of elements required is {0}": "必要な要素数の最大は{0}です",
|
|
252
252
|
"the same {0} as {1}": "{1}と同等の{0}",
|
|
253
|
+
"the user agent will automatically use \"{0}\" instead": "ユーザーエージェントは自動的に「{0}」を代わりに使用します。",
|
|
253
254
|
"there is more content than it needs": "必要以上のコンテンツがあります",
|
|
254
255
|
"unexpected {0}": "期待されない{0}",
|
|
255
256
|
"unique {0}": "一意の{0}",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markuplint/i18n",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.10.0",
|
|
4
4
|
"description": "HTML parser for markuplint",
|
|
5
5
|
"repository": "git@github.com:markuplint/markuplint.git",
|
|
6
6
|
"author": "Yusuke Hirao <yusukehirao@me.com>",
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
"build": "tsc",
|
|
19
19
|
"clean": "tsc --build --clean"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "ef31aef8f2fff319d0f692feead332ec5fc5c7cf"
|
|
22
22
|
}
|