translation-adapter-ts
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"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 { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13727
285