@markuplint/i18n
Advanced tools
Comparing version 3.3.0 to 3.4.0
@@ -151,2 +151,3 @@ { | ||
"url who schema is an http(s) schema": { "type": "string" }, | ||
"use": { "type": "string" }, | ||
"username": { "type": "string" }, | ||
@@ -188,2 +189,3 @@ "value": { "type": "string" }, | ||
"{0} if it has {1}": { "type": "string" }, | ||
"{0} if you {1} {2}": { "type": "string" }, | ||
"{0} includes {1}": { "type": "string" }, | ||
@@ -197,2 +199,3 @@ "{0} is {1:c}": { "type": "string" }, | ||
"{0} is not allowed in {1} through the transparent model in this context": { "type": "string" }, | ||
"{0} is not recommended to {1}": { "type": "string" }, | ||
"{0} is unmatched with the below patterns: {1}": { "type": "string" }, | ||
@@ -223,2 +226,3 @@ "{0} less than {1}": { "type": "string" }, | ||
"a {0}": { "type": "string" }, | ||
"add {0}": { "type": "string" }, | ||
"allowed values are: {0}": { "type": "string" }, | ||
@@ -256,2 +260,3 @@ "also disallows {0} in this context": { "type": "string" }, | ||
"require {0}": { "type": "string" }, | ||
"remove {0}": { "type": "string" }, | ||
"the {0} format": { "type": "string" }, | ||
@@ -258,0 +263,0 @@ "the {0} part": { "type": "string" }, |
@@ -6,2 +6,4 @@ import type { LocaleSet, Primitive, Translator } from './types'; | ||
*/ | ||
export declare function taggedTemplateTranslator(localeSet?: LocaleSet): (strings: TemplateStringsArray, ...keys: Primitive[]) => string; | ||
export declare function taggedTemplateTranslator( | ||
localeSet?: LocaleSet, | ||
): (strings: TemplateStringsArray, ...keys: Primitive[]) => string; |
export type Translator = (messageTmpl: string | string[], ...keywords: Primitive[]) => string; | ||
export type LocaleSet = { | ||
locale: string; | ||
listFormat?: ListFormat; | ||
keywords?: LocalesKeywords; | ||
sentences?: LocalesKeywords; | ||
locale: string; | ||
listFormat?: ListFormat; | ||
keywords?: LocalesKeywords; | ||
sentences?: LocalesKeywords; | ||
}; | ||
export type ListFormat = { | ||
quoteStart: string; | ||
quoteEnd: string; | ||
separator: string; | ||
quoteStart: string; | ||
quoteEnd: string; | ||
separator: string; | ||
}; | ||
export type Primitive = string | number | boolean; | ||
export type LocalesKeywords = { | ||
[messageId: string]: string | void; | ||
[messageId: string]: string | void; | ||
}; |
@@ -139,2 +139,3 @@ { | ||
"url who schema is an http(s) schema": "HTTP(S)スキーマのURL", | ||
"use": "使用", | ||
"username": "ユーザー名", | ||
@@ -172,2 +173,3 @@ "value": "値", | ||
"{0} if it has {1}": "{1}を持つならば、{0}", | ||
"{0} if you {1} {2}": "{1}する場合は、{0}", | ||
"{0} includes {1}": "{0}は{1}を含んでいます", | ||
@@ -181,2 +183,3 @@ "{0} is {1:c}": "{0}{1:c}", | ||
"{0} is not allowed in {1} through the transparent model in this context": "このコンテキストでは、トランスペアレントモデルを介して{1}に{0}を含めることはできません", | ||
"{0} is not recommended to {1}": "{0}は{1}することは推奨されません", | ||
"{0} is unmatched with the below patterns: {1}": "{0}は次のパターンにマッチしませんでした {1}", | ||
@@ -207,2 +210,3 @@ "{0} less than {1}": "{1}より小さい{0}", | ||
"a {0}": "{0}", | ||
"add {0}": "{0}を追加してください", | ||
"allowed values are: {0}": "許可されている値は次のとおりです {0}", | ||
@@ -237,2 +241,3 @@ "also disallows {0} in this context": "このコンテキスト内では{0}も許可しません", | ||
"never {0} {1}": "{1}を{0}しないでください", | ||
"remove {0}": "{0}を削除してください", | ||
"require {0}": "{0}が必要です", | ||
@@ -239,0 +244,0 @@ "the {0} format": "{0}形式", |
{ | ||
"name": "@markuplint/i18n", | ||
"version": "3.3.0", | ||
"version": "3.4.0", | ||
"description": "HTML parser for markuplint", | ||
@@ -21,3 +21,3 @@ "repository": "git@github.com:markuplint/markuplint.git", | ||
}, | ||
"gitHead": "791fb22a4df7acb985ced3808923fba0cd95c28a" | ||
"gitHead": "a83e0f5f214a9bbcc0286b9e269074ddca6189e7" | ||
} |
33899
688