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

translation-adapter-ts

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

translation-adapter-ts - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "translation-adapter-ts",
"version": "1.0.0",
"version": "1.0.1",
"description": "The translation adapter for i18n_mrg tool support in TypeScript projects.",

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

@@ -8,3 +8,3 @@ # How to install

```typescript
import {PofileTransformer} from "/src/PofileTransformer";
import {PofileTransformer} from "translation-adapter-ts/src/PofileTransformer";
let transformer = new PofileTransformer();

@@ -16,5 +16,5 @@ transformer.transformDirectory('i18n/ru_RU/LC_MESSAGES');

```typescript
import {Localizator} from "/src/Localizator";
import {LanguageEnum} from "/src/Enums/LanguageEnum";
import * as data from "/test/translationFiles/test.json";
import {Localizator} from "translation-adapter-ts/src/Localizator";
import {LanguageEnum} from "translation-adapter-ts/src/Enums/LanguageEnum";
import * as data from "translation-adapter-ts/test/translationFiles/test.json";
import {readFileSync} from "fs";

@@ -30,3 +30,3 @@

```typescript
import {__} from '/src/Main.ts';
import {__} from 'translation-adapter-ts/src/Main.ts';

@@ -33,0 +33,0 @@ console.log(__("Test string"));

import {LanguageEnum} from "./Enums/LanguageEnum";
import {ITranslation} from "./ITranslation";
import {readFileSync} from 'fs';

@@ -5,0 +4,0 @@ export class Localizator {

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