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

@ribajs/i18n

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ribajs/i18n - npm Package Compare versions

Comparing version 1.1.5 to 1.2.0

18

package.json
{
"name": "@ribajs/i18n",
"description": "Internationalization extension for Riba.js",
"version": "1.1.5",
"version": "1.2.0",
"author": "Pascal Garber <pascal@jumplink.eu>",

@@ -27,8 +27,8 @@ "url": "https://github.com/ribajs/riba/tree/master/packages/i18n",

"devDependencies": {
"@babel/cli": "^7.6.0",
"@babel/core": "^7.6.0",
"@babel/cli": "^7.6.2",
"@babel/core": "^7.6.2",
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/plugin-proposal-object-rest-spread": "^7.5.5",
"@babel/plugin-transform-runtime": "^7.6.0",
"@babel/preset-env": "^7.6.0",
"@babel/plugin-proposal-object-rest-spread": "^7.6.2",
"@babel/plugin-transform-runtime": "^7.6.2",
"@babel/preset-env": "^7.6.2",
"@babel/preset-typescript": "^7.6.0",

@@ -40,8 +40,8 @@ "@types/jquery": "^3.3.31",

"typescript": "^3.6.3",
"webpack": "^4.40.2",
"webpack": "^4.41.0",
"webpack-cli": "^3.3.9"
},
"dependencies": {
"@babel/runtime-corejs2": "^7.6.0",
"@ribajs/core": "^1.1.5"
"@babel/runtime-corejs2": "^7.6.2",
"@ribajs/core": "^1.2.0"
},

@@ -48,0 +48,0 @@ "bugs": {

@@ -41,3 +41,7 @@ import { Utils, IBinder, BinderWrapper, JQuery as $ } from '@ribajs/core';

if (!locale) {
locale = `translation missing: "${this.customData.properties.join('.')}"`;
if (this.customData.i18n.showMissingTranslation) {
locale = `translation missing: "${this.customData.properties.join('.')}"`;
} else {
return;
}
}

@@ -196,3 +200,3 @@ if (this.customData.attributeName === 'html') {

};
} as IBinder<string>;
};

@@ -7,4 +7,4 @@ import { i18nStarBinderWrapper } from './i18n/i18n-star.binder';

return {
...i18nStarBinderWrapper(localesService),
};
i18nStarBinder: i18nStarBinderWrapper(localesService),
} as IBinders<any>;
};

@@ -7,4 +7,4 @@ import { tFormatterWrapper } from './t.formatter';

return {
...tFormatterWrapper(localesService),
t: tFormatterWrapper(localesService),
};
};

@@ -26,3 +26,3 @@ import { Debug, IFormatter } from '@ribajs/core';

name: 't',
async read(translateMePathString: string, langcode: string, ...vars: string[]) {
read(translateMePathString: string, langcode: string, ...vars: string[]) {
debug('formatter t', translateMePathString, langcode);

@@ -50,3 +50,3 @@ if (localesService.ready) {

},
};
} as IFormatter;
};

@@ -12,2 +12,4 @@ import { Utils, EventDispatcher, Debug } from '@ribajs/core';

public showMissingTranslation: boolean = false;
protected _ready: boolean = false;

@@ -27,4 +29,5 @@

constructor(public doNotTranslateDefaultLanguage: boolean) {
constructor(public doNotTranslateDefaultLanguage: boolean, showMissingTranslation: boolean) {
this.doNotTranslateDefaultLanguage = doNotTranslateDefaultLanguage;
this.showMissingTranslation = showMissingTranslation;
}

@@ -31,0 +34,0 @@

@@ -31,4 +31,4 @@ import { Debug, Utils } from '@ribajs/core';

constructor(protected url: string, doNotTranslateDefaultLanguage: boolean = false) {
super(doNotTranslateDefaultLanguage);
constructor(protected url: string, doNotTranslateDefaultLanguage: boolean = false, showMissingTranslation: boolean = false) {
super(doNotTranslateDefaultLanguage, showMissingTranslation);

@@ -35,0 +35,0 @@ this.url = url;

@@ -26,4 +26,4 @@ import { Debug } from '@ribajs/core';

constructor(protected locales: any, protected id?: string, doNotTranslateDefaultLanguage: boolean = false) {
super(doNotTranslateDefaultLanguage);
constructor(protected locales: any, protected id?: string, doNotTranslateDefaultLanguage: boolean = false, showMissingTranslation: boolean = false) {
super(doNotTranslateDefaultLanguage, showMissingTranslation);
if (!id) {

@@ -30,0 +30,0 @@ id = 'main';

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