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

@boost/translate

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@boost/translate - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

12

CHANGELOG.md

@@ -6,2 +6,14 @@ # Change Log

### 1.1.2 - 2019-10-30
#### 📦 Dependencies
- **[i18next]** Update to v19. ([292632f](https://github.com/milesj/boost/tree/master/packages/log/commit/292632f))
**Note:** Version bump only for package @boost/translate
### 1.1.1 - 2019-09-09

@@ -8,0 +20,0 @@

4

lib/createTranslator.d.ts

@@ -1,2 +0,2 @@

import i18next from 'i18next';
import { InitOptions } from 'i18next';
import { Path } from '@boost/common';

@@ -14,3 +14,3 @@ import { Locale, Translator, Format } from './types';

/** Order in which to load and lookup locale translations. */
lookupType?: i18next.InitOptions['load'];
lookupType?: InitOptions['load'];
/** File format resource bundles are written in. Defaults to `yaml`. */

@@ -17,0 +17,0 @@ resourceFormat?: Format;

@@ -1,2 +0,2 @@

import i18next from 'i18next';
import { BackendModule, Resource, ResourceKey } from 'i18next';
import { Contract, Path, Predicates } from '@boost/common';

@@ -8,5 +8,5 @@ import { Locale, Format } from './types';

}
export default class FileBackend extends Contract<FileBackendOptions> implements i18next.BackendModule {
export default class FileBackend extends Contract<FileBackendOptions> implements BackendModule {
fileCache: {
[path: string]: i18next.ResourceKey;
[path: string]: ResourceKey;
};

@@ -20,4 +20,4 @@ type: 'backend';

create(): void;
read(locale: Locale, namespace: string, callback: (error: Error | null, resources: i18next.Resource) => void): i18next.ResourceKey;
read(locale: Locale, namespace: string, callback: (error: Error | null, resources: Resource) => void): ResourceKey;
}
//# sourceMappingURL=FileBackend.d.ts.map

@@ -1,4 +0,4 @@

import i18next from 'i18next';
import { LanguageDetectorModule } from 'i18next';
import { Locale } from './types';
export default class LocaleDetector implements i18next.LanguageDetectorModule {
export default class LocaleDetector implements LanguageDetectorModule {
locale: Locale;

@@ -5,0 +5,0 @@ type: 'languageDetector';

@@ -1,2 +0,2 @@

import i18next from 'i18next';
import { i18n, InterpolationOptions } from 'i18next';
export declare type Direction = 'ltr' | 'rtl';

@@ -16,3 +16,3 @@ export declare type Format = 'js' | 'json' | 'yaml';

/** Interpolation options to pass down. */
interpolation?: i18next.InterpolationOptions;
interpolation?: InterpolationOptions;
/** Force translation to this locale. */

@@ -28,4 +28,4 @@ locale?: Locale;

changeLocale(locale: Locale): void;
i18n: i18next.i18n;
i18n: i18n;
}
//# sourceMappingURL=types.d.ts.map
{
"name": "@boost/translate",
"version": "1.1.1",
"version": "1.1.2",
"description": "Package and application level translations made easy.",

@@ -24,8 +24,8 @@ "keywords": [

"dependencies": {
"@boost/common": "^1.2.0",
"@boost/common": "^1.2.1",
"@boost/internal": "^1.0.0",
"i18next": "^17.0.13",
"i18next": "^19.0.0",
"os-locale": "^4.0.0"
},
"gitHead": "fa924fa2326f225774f05ec918c3877507a52c82"
"gitHead": "24121e1d29812fa8cf2e0b5e1345b2a94bf40532"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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