Skip to content

Commit

Permalink
Updated package data back to @ngx-translate/core
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
CodeAndWeb committed Oct 31, 2024
1 parent 8d8a20e commit c238d8a
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 22 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
<br/>

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.

Expand All @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion projects/http-loader/README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
6 changes: 3 additions & 3 deletions projects/http-loader/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion projects/http-loader/src/lib/http-loader.spec.ts
Original file line number Diff line number Diff line change
@@ -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', () => {
Expand Down
2 changes: 1 addition & 1 deletion projects/http-loader/src/lib/http-loader.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion projects/ngx-translate/README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
8 changes: 4 additions & 4 deletions projects/ngx-translate/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions projects/test-app/src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -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({
Expand Down
2 changes: 1 addition & 1 deletion projects/test-app/src/app/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
Expand Down
2 changes: 1 addition & 1 deletion projects/test-app/src/app/standalone.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Component} from "@angular/core";
import {TranslatePipe, TranslateDirective} from "@codeandweb/ngx-translate";
import {TranslatePipe, TranslateDirective} from "@ngx-translate/core";


@Component({
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
},
Expand Down

0 comments on commit c238d8a

Please sign in to comment.