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

@jota-one/i36n

Package Overview
Dependencies
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jota-one/i36n - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

1

index.d.ts

@@ -12,2 +12,3 @@ declare function $label(key: string, params: object, lang: string, markdown: boolean): string;

$label: Function
loadTranslations: Function
}

@@ -14,0 +15,0 @@

2

package.json
{
"name": "@jota-one/i36n",
"version": "2.0.0",
"version": "2.1.0",
"description": "Translation manager twice simpler and twice better",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -61,2 +61,7 @@ import { ref, reactive, watch, computed, provide, inject } from 'vue'

const loadTranslations = async ln => {
labels[ln] = await load(ln)
loaded.value += 1
}
let _switching = false

@@ -68,4 +73,3 @@ watch(() => currentLanguage.value, async ln => {

if (!labels[ln]) {
labels[ln] = await load(ln)
loaded.value += 1
await loadTranslations(ln)
}

@@ -80,3 +84,4 @@

showKey,
$label
$label,
loadTranslations,
}

@@ -83,0 +88,0 @@

@@ -61,2 +61,7 @@ import { ref, reactive, watch, computed, provide, inject } from '@vue/composition-api'

const loadTranslations = async ln => {
labels[ln] = await load(ln)
loaded.value += 1
}
let _switching = false

@@ -68,4 +73,3 @@ watch(() => currentLanguage.value, async ln => {

if (!labels[ln]) {
labels[ln] = await load(ln)
loaded.value += 1
await loadTranslations(ln)
}

@@ -80,3 +84,4 @@

showKey,
$label
$label,
loadTranslations,
}

@@ -83,0 +88,0 @@

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