Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@markuplint/i18n

Package Overview
Dependencies
Maintainers
1
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@markuplint/i18n - npm Package Compare versions

Comparing version 4.0.0-alpha.6 to 4.0.0-alpha.7

2

$schema.json

@@ -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" },

3

cjs/translator.js

@@ -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-alpha.6",
"version": "4.0.0-alpha.7",
"description": "Internationalization for markuplint",

@@ -40,3 +40,3 @@ "repository": "git@github.com:markuplint/markuplint.git",

},
"gitHead": "06e1242d274c72cf08a10a572b06ac35d1b924a4"
"gitHead": "571129bf6498541125e1e7c3907d5ed9af53459a"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc