@markuplint/i18n 3.3.0 → 3.4.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 CHANGED
@@ -148,6 +148,7 @@
148
148
  "unit": { "type": "string" },
149
149
  "uppercase": { "type": "string" },
150
150
  "url who schema is an http(s) schema": { "type": "string" },
151
+ "use": { "type": "string" },
151
152
  "username": { "type": "string" },
152
153
  "value": { "type": "string" },
153
154
  "void element": { "type": "string" },
@@ -184,6 +185,7 @@
184
185
  "{0} greater than or equal to {1}": { "type": "string" },
185
186
  "{0} has {1}": { "type": "string" },
186
187
  "{0} if it has {1}": { "type": "string" },
188
+ "{0} if you {1} {2}": { "type": "string" },
187
189
  "{0} includes {1}": { "type": "string" },
188
190
  "{0} is {1:c}": { "type": "string" },
189
191
  "{0} is {1}": { "type": "string" },
@@ -192,6 +194,7 @@
192
194
  "{0} is not {1}": { "type": "string" },
193
195
  "{0} is not allowed in {1} in this context": { "type": "string" },
194
196
  "{0} is not allowed in {1} through the transparent model in this context": { "type": "string" },
197
+ "{0} is not recommended to {1}": { "type": "string" },
195
198
  "{0} is unmatched with the below patterns: {1}": { "type": "string" },
196
199
  "{0} less than {1}": { "type": "string" },
197
200
  "{0} less than or equal to {1}": { "type": "string" },
@@ -217,6 +220,7 @@
217
220
  "{0}. Or, {1}": { "type": "string" },
218
221
  "\"{0}\" ID": { "type": "string" },
219
222
  "a {0}": { "type": "string" },
223
+ "add {0}": { "type": "string" },
220
224
  "allowed values are: {0}": { "type": "string" },
221
225
  "also disallows {0} in this context": { "type": "string" },
222
226
  "an {0}": { "type": "string" },
@@ -249,6 +253,7 @@
249
253
  "need \"{0}\"": { "type": "string" },
250
254
  "never {0} {1}": { "type": "string" },
251
255
  "require {0}": { "type": "string" },
256
+ "remove {0}": { "type": "string" },
252
257
  "the {0} format": { "type": "string" },
253
258
  "the {0} part": { "type": "string" },
254
259
  "the {0}": { "type": "string" },
@@ -3,4 +3,6 @@ export declare function translator(localeSet?: LocaleSet): Translator;
3
3
  /**
4
4
  * @experimental
5
5
  */
6
- export declare function taggedTemplateTranslator(localeSet?: LocaleSet): (strings: TemplateStringsArray, ...keys: Primitive[]) => string;
6
+ export declare function taggedTemplateTranslator(
7
+ localeSet?: LocaleSet,
8
+ ): (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
- locale: string;
4
- listFormat?: ListFormat;
5
- keywords?: LocalesKeywords;
6
- sentences?: LocalesKeywords;
3
+ locale: string;
4
+ listFormat?: ListFormat;
5
+ keywords?: LocalesKeywords;
6
+ sentences?: LocalesKeywords;
7
7
  };
8
8
  export type ListFormat = {
9
- quoteStart: string;
10
- quoteEnd: string;
11
- separator: string;
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
- [messageId: string]: string | void;
15
+ [messageId: string]: string | void;
16
16
  };
package/locales/ja.json CHANGED
@@ -136,6 +136,7 @@
136
136
  "unit": "単位",
137
137
  "uppercase": "大文字",
138
138
  "url who schema is an http(s) schema": "HTTP(S)スキーマのURL",
139
+ "use": "使用",
139
140
  "username": "ユーザー名",
140
141
  "value": "値",
141
142
  "void element": "空要素",
@@ -168,6 +169,7 @@
168
169
  "{0} greater than or equal to {1}": "{1}以上の{0}",
169
170
  "{0} has {1}": "{0}は{1}を持っています",
170
171
  "{0} if it has {1}": "{1}を持つならば、{0}",
172
+ "{0} if you {1} {2}": "{1}する場合は、{0}",
171
173
  "{0} includes {1}": "{0}は{1}を含んでいます",
172
174
  "{0} is {1:c}": "{0}{1:c}",
173
175
  "{0} is {1} but {2}": "{0}は{1}ですが、{2}",
@@ -176,6 +178,7 @@
176
178
  "{0} is not {1}": "{0}は{1}ではありません",
177
179
  "{0} is not allowed in {1} in this context": "このコンテキストでは、{1}に{0}を含めることはできません",
178
180
  "{0} is not allowed in {1} through the transparent model in this context": "このコンテキストでは、トランスペアレントモデルを介して{1}に{0}を含めることはできません",
181
+ "{0} is not recommended to {1}": "{0}は{1}することは推奨されません",
179
182
  "{0} is unmatched with the below patterns: {1}": "{0}は次のパターンにマッチしませんでした {1}",
180
183
  "{0} less than {1}": "{1}より小さい{0}",
181
184
  "{0} less than or equal to {1}": "{1}以下の{0}",
@@ -201,6 +204,7 @@
201
204
  "{0}. Or, {1}": "{0}。または、{1}",
202
205
  "\"{0}\" ID": "ID「{0}」",
203
206
  "a {0}": "{0}",
207
+ "add {0}": "{0}を追加してください",
204
208
  "allowed values are: {0}": "許可されている値は次のとおりです {0}",
205
209
  "also disallows {0} in this context": "このコンテキスト内では{0}も許可しません",
206
210
  "an {0}": "{0}",
@@ -230,6 +234,7 @@
230
234
  "need {0}": "{0}が必要です",
231
235
  "need \"{0}\"": "「{0}」が必要です",
232
236
  "never {0} {1}": "{1}を{0}しないでください",
237
+ "remove {0}": "{0}を削除してください",
233
238
  "require {0}": "{0}が必要です",
234
239
  "the {0} format": "{0}形式",
235
240
  "the {0} part": "{0}の部分",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markuplint/i18n",
3
- "version": "3.3.0",
3
+ "version": "3.4.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": "791fb22a4df7acb985ced3808923fba0cd95c28a"
21
+ "gitHead": "a83e0f5f214a9bbcc0286b9e269074ddca6189e7"
22
22
  }