From c238d8afa42a99e655951ecb4d8bd34cdf36decd Mon Sep 17 00:00:00 2001 From: Andreas Loew Date: Thu, 31 Oct 2024 15:39:04 +0100 Subject: [PATCH] Updated package data back to @ngx-translate/core Update README.md --- README.md | 8 +++----- projects/http-loader/README.md | 2 +- projects/http-loader/package.json | 6 +++--- projects/http-loader/src/lib/http-loader.spec.ts | 2 +- projects/http-loader/src/lib/http-loader.ts | 2 +- projects/ngx-translate/README.md | 2 +- projects/ngx-translate/package.json | 8 ++++---- projects/test-app/src/app/app.component.ts | 4 ++-- projects/test-app/src/app/app.config.ts | 2 +- projects/test-app/src/app/standalone.component.ts | 2 +- tsconfig.json | 4 ++-- 11 files changed, 20 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index b472e3f..2da6013 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,12 @@ -# @codeandweb/ngx-translate ![Buildstatus](https://github.com/CodeAndWeb/ngx-translate/actions/workflows/ngx-translate-test.yml/badge.svg) [![npm version](https://badge.fury.io/js/%40ngx-translate%2Fcore.svg)](https://badge.fury.io/js/%40ngx-translate%2Fcore) +# @ngx-translate/core ![Buildstatus](https://github.com/ngx-translate/core/actions/workflows/ngx-translate-test.yml/badge.svg) [![npm version](https://badge.fury.io/js/%40ngx-translate%2Fcore.svg)](https://badge.fury.io/js/%40ngx-translate%2Fcore) The internationalization (i18n) library for Angular.
-Forked from @ngx-translate/core after library was abandoned by the maintainer. - ## Angular 16, 17, 18+ The [new documentation](https://ngx-translate.org/) now covers installation on -Angular 18+ and is divided into smaller, more readable sections, making it +Angular 16+ and is divided into smaller, more readable sections, making it easier to digest than this big README. It also documents the additional interfaces and explains how to develop custom plugins. @@ -33,7 +31,7 @@ The complete changelog of ngx-translate: https://github.com/ngx-translate/core/r ## Angular <=15 -This documentation is still available for older versions of Angular. Newer +This documentation is still available for **older versions of Angular**. Newer versions of Angular use Standalone Components by default, which are not explained here. diff --git a/projects/http-loader/README.md b/projects/http-loader/README.md index c1141ef..450f4fe 100644 --- a/projects/http-loader/README.md +++ b/projects/http-loader/README.md @@ -1,4 +1,4 @@ -# @codeandweb/http-loader ![Buildstatus](https://github.com/CodeAndWeb/ngx-translate/actions/workflows/ngx-translate-test.yml/badge.svg) [![npm version](https://badge.fury.io/js/%40ngx-translate%2Fcore.svg)](https://badge.fury.io/js/%40ngx-translate%2Fcore) +# @ngx-translate/http-loader ![Buildstatus](https://github.com/ngx-translate/core/actions/workflows/ngx-translate-test.yml/badge.svg) [![npm version](https://badge.fury.io/js/%40ngx-translate%2Fcore.svg)](https://badge.fury.io/js/%40ngx-translate%2Fcore) HTTP loader for ngx-translate diff --git a/projects/http-loader/package.json b/projects/http-loader/package.json index dabbdb6..571c749 100644 --- a/projects/http-loader/package.json +++ b/projects/http-loader/package.json @@ -1,9 +1,9 @@ { "name": "@codeandweb/http-loader", "version": "16.0.0", - "description": "http loader for dynamically loading translation files for @codeandweb/ngx-translate - maintained fork of @ngx-translate/http-loader", - "keywords": ["@ngx-translate", "ngx-translate", "@ngx-translate/http-loader", "@codeandweb/ngx-translate"], - "author": "Andreas Löw / CodeAndWeb GmbH", + "description": "http loader for dynamically loading translation files for @ngx-translate/core", + "keywords": ["@ngx-translate", "ngx-translate", "@ngx-translate/http-loader"], + "author": "Andreas Löw / CodeAndWeb GmbH, Olivier Combe", "license": "MIT", "peerDependencies": { "@angular/common": ">=16", diff --git a/projects/http-loader/src/lib/http-loader.spec.ts b/projects/http-loader/src/lib/http-loader.spec.ts index bdd38b6..74defb6 100644 --- a/projects/http-loader/src/lib/http-loader.spec.ts +++ b/projects/http-loader/src/lib/http-loader.spec.ts @@ -1,7 +1,7 @@ import {HttpClient, provideHttpClient} from "@angular/common/http"; import {HttpTestingController, provideHttpClientTesting} from "@angular/common/http/testing"; import {TestBed} from "@angular/core/testing"; -import {TranslateLoader, provideTranslateService, TranslateService, Translation} from "@codeandweb/ngx-translate"; +import {TranslateLoader, provideTranslateService, TranslateService, Translation} from "@ngx-translate/core"; import {TranslateHttpLoader} from "../public-api"; describe('TranslateLoader', () => { diff --git a/projects/http-loader/src/lib/http-loader.ts b/projects/http-loader/src/lib/http-loader.ts index 28c2ed4..0bb3c53 100644 --- a/projects/http-loader/src/lib/http-loader.ts +++ b/projects/http-loader/src/lib/http-loader.ts @@ -1,5 +1,5 @@ import {HttpClient} from "@angular/common/http"; -import {TranslateLoader, TranslationObject} from "@codeandweb/ngx-translate"; +import {TranslateLoader, TranslationObject} from "@ngx-translate/core"; import {Observable} from 'rxjs'; export class TranslateHttpLoader implements TranslateLoader { diff --git a/projects/ngx-translate/README.md b/projects/ngx-translate/README.md index 82302c0..49c31ca 100644 --- a/projects/ngx-translate/README.md +++ b/projects/ngx-translate/README.md @@ -1,4 +1,4 @@ -# @codeandweb/ngx-translate ![Buildstatus](https://github.com/CodeAndWeb/ngx-translate/actions/workflows/ngx-translate-test.yml/badge.svg) [![npm version](https://badge.fury.io/js/%40ngx-translate%2Fcore.svg)](https://badge.fury.io/js/%40ngx-translate%2Fcore) +# @ngx-translate/core ![Buildstatus](https://github.com/ngx-translate/core/actions/workflows/ngx-translate-test.yml/badge.svg) [![npm version](https://badge.fury.io/js/%40ngx-translate%2Fcore.svg)](https://badge.fury.io/js/%40ngx-translate%2Fcore) The internationalization (i18n) library for Angular. diff --git a/projects/ngx-translate/package.json b/projects/ngx-translate/package.json index 1a7cffb..17d4594 100644 --- a/projects/ngx-translate/package.json +++ b/projects/ngx-translate/package.json @@ -1,9 +1,9 @@ { - "name": "@codeandweb/ngx-translate", + "name": "@ngx-translate/core", "version": "16.0.0", - "description": "Translation library (i18n) for Angular - maintained fork of @ngx-translate/core", - "keywords": ["@ngx-translate", "ngx-translate", "@ngx-translate/http-loader", "@codeandweb/ngx-translate"], - "author": "Andreas Löw / CodeAndWeb GmbH", + "description": "Translation library (i18n) for Angular", + "keywords": ["@ngx-translate", "ngx-translate", "@ngx-translate/http-loader"], + "author": "Andreas Löw / CodeAndWeb GmbH, Olivier Combe", "license": "MIT", "peerDependencies": { "@angular/common": ">=16", diff --git a/projects/test-app/src/app/app.component.ts b/projects/test-app/src/app/app.component.ts index f6bf15f..eb0447a 100644 --- a/projects/test-app/src/app/app.component.ts +++ b/projects/test-app/src/app/app.component.ts @@ -1,8 +1,8 @@ import {Component} from "@angular/core"; import {RouterOutlet} from "@angular/router"; -import {TranslateService, TranslatePipe, TranslateDirective} from "@codeandweb/ngx-translate"; +import {TranslateService, TranslatePipe, TranslateDirective} from "@ngx-translate/core"; import {StandaloneComponent} from "./standalone.component"; -import {_} from "@codeandweb/ngx-translate"; +import {_} from "@ngx-translate/core"; @Component({ diff --git a/projects/test-app/src/app/app.config.ts b/projects/test-app/src/app/app.config.ts index 549a7f8..0d874d1 100644 --- a/projects/test-app/src/app/app.config.ts +++ b/projects/test-app/src/app/app.config.ts @@ -3,7 +3,7 @@ import {provideRouter} from "@angular/router"; import {routes} from "./app.routes"; import {HttpClient, provideHttpClient} from "@angular/common/http"; -import {TranslateLoader, provideTranslateService} from "@codeandweb/ngx-translate"; +import {TranslateLoader, provideTranslateService} from "@ngx-translate/core"; import {TranslateHttpLoader} from "@codeandweb/http-loader"; const httpLoaderFactory: (http: HttpClient) => TranslateHttpLoader = (http: HttpClient) => diff --git a/projects/test-app/src/app/standalone.component.ts b/projects/test-app/src/app/standalone.component.ts index d81807c..81a17f1 100644 --- a/projects/test-app/src/app/standalone.component.ts +++ b/projects/test-app/src/app/standalone.component.ts @@ -1,5 +1,5 @@ import {Component} from "@angular/core"; -import {TranslatePipe, TranslateDirective} from "@codeandweb/ngx-translate"; +import {TranslatePipe, TranslateDirective} from "@ngx-translate/core"; @Component({ diff --git a/tsconfig.json b/tsconfig.json index 5572637..b59a3c9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,10 +12,10 @@ "skipLibCheck": true, "isolatedModules": true, "paths": { - "@codeandweb/http-loader": [ + "@ngx-translate/http-loader": [ "./dist/http-loader" ], - "@codeandweb/ngx-translate": [ + "@ngx-translate/core": [ "./dist/ngx-translate" ] },