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-dev.10 to 4.0.0-dev.12

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-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

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