# ngx-translate-with-country

> The internationalization (i18n) library for Angular with Language and Country Support

Latest version **1.0.1** (published 2018-11-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install ngx-translate-with-country
pnpm add ngx-translate-with-country
yarn add ngx-translate-with-country
bun add ngx-translate-with-country
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-11-08 |
| First published | 2018-11-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 1.1 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ismet Yavuz |
| Maintainers | soot |
| Keywords | angular, angular 2, i18n, translate, ngx-translate |

## Links

- npm: https://www.npmjs.com/package/ngx-translate-with-country
- Repository: https://github.com/sOoT/ngx-translate-with-country
- Issues: https://github.com/sOoT/ngx-translate-with-countryissues
- npm.io page: https://npm.io/package/ngx-translate-with-country

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^1.9.0

## Alternatives

- [messageformat](https://npm.io/package/messageformat.md) — 329.7K weekly downloads
- [@mintlify/scraping](https://npm.io/package/@mintlify/scraping.md) — 294.8K weekly downloads
- [@mintlify/previewing](https://npm.io/package/@mintlify/previewing.md) — 209.5K weekly downloads
- [@mintlify/prebuild](https://npm.io/package/@mintlify/prebuild.md) — 209.5K weekly downloads
- [@mintlify/link-rot](https://npm.io/package/@mintlify/link-rot.md) — 206.3K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2018-11-08
- 1.0.0 — 2018-11-08

## README

# ngx-translate with Language and Country Support 

The internationalization (i18n) library for Angular with language and country support.

This is a fork of [ngx-translate](https://github.com/ngx-translate/core) library.

Only difference from the original library is using country variable in functions like below.

```ts
import {Component} from '@angular/core';
import {TranslateService} from '@ngx-translate/core';

@Component({
    selector: 'app',
    template: `
        <div>{{ 'HELLO' | translate:param }}</div>
    `
})
export class AppComponent {
    param = {value: 'world'};

    constructor(translate: TranslateService) {
        // this language will be used as a fallback when a translation isn't found in the current language
        translate.setDefaultLang('en', 'country');

         // the lang to use, if the lang isn't available, it will use the current loader to get them
        translate.use('en', 'country');
    }
}
```

---
_Source: https://npm.io/package/ngx-translate-with-country · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
