@markuplint/i18n
Advanced tools
Comparing version 4.0.0-dev.10 to 4.0.0-dev.12
@@ -53,2 +53,3 @@ { | ||
"characters": { "type": "string" }, | ||
"child element": { "type": "string" }, | ||
"class name": { "type": "string" }, | ||
@@ -216,2 +217,3 @@ "code block": { "type": "string" }, | ||
"{0} part of {1}": { "type": "string" }, | ||
"{0} requires {1}": { "type": "string" }, | ||
"{0} should {1}": { "type": "string" }, | ||
@@ -218,0 +220,0 @@ "{0} should associate with {1}": { "type": "string" }, |
@@ -28,3 +28,4 @@ "use strict"; | ||
const key = removeNoTranslateMark(messageTmpl).toLowerCase(); | ||
const sentence = localeSet?.sentences?.[key]; | ||
const sentences = Object.entries(localeSet?.sentences ?? {}); | ||
const sentence = sentences.find(([sentenceKey]) => sentenceKey.toLowerCase() === key)?.[1]; | ||
messageTmpl = sentence ?? key; | ||
@@ -31,0 +32,0 @@ messageTmpl = |
@@ -41,2 +41,3 @@ { | ||
"characters": "文字", | ||
"child element": "子要素", | ||
"class name": "クラス名", | ||
@@ -200,2 +201,3 @@ "code block": "コードブロック", | ||
"{0} part of {1}": "{1}の{0}の部分", | ||
"{0} requires {1}": "{0}に{1}が必要です", | ||
"{0} should {1}": "{0}は{1}したほうがよいです", | ||
@@ -202,0 +204,0 @@ "{0} should associate with {1}": "{0}は{1}と関連付けたほうがよいです", |
{ | ||
"name": "@markuplint/i18n", | ||
"version": "4.0.0-dev.10+b28398ab", | ||
"version": "4.0.0-dev.12+2275fbeb0", | ||
"description": "Internationalization for markuplint", | ||
@@ -40,3 +40,3 @@ "repository": "git@github.com:markuplint/markuplint.git", | ||
}, | ||
"gitHead": "b28398ab9c8f0ad790f2915ad5da8f3a80e9b8d6" | ||
"gitHead": "2275fbeb053605b636f080f4fafd7cd4fc57a9a3" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
41317
887