# ngx-azm

> Welcome to ngx-azm , it is the first npm package for me , and I will try to add the most resuable code we need in our real projects .

Latest version **0.0.11** (published 2021-03-02) · 0 weekly downloads

## Install

```sh
npm install ngx-azm
pnpm add ngx-azm
yarn add ngx-azm
bun add ngx-azm
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.11 |
| Published | 2021-03-02 |
| First published | 2021-02-24 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 85.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | ahmedzaky030 |

## Links

- npm: https://www.npmjs.com/package/ngx-azm
- npm.io page: https://npm.io/package/ngx-azm

## Dependencies (1)

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

## Recent versions

- 0.0.11 (latest) — 2021-03-02
- 0.0.10 — 2021-03-02
- 0.0.9 — 2021-03-02
- 0.0.8 — 2021-03-02
- 0.0.7 — 2021-03-02
- 0.0.6 — 2021-03-02
- 0.0.4 — 2021-02-24
- 0.0.3 — 2021-02-24
- 0.0.2 — 2021-02-24
- 0.0.1 — 2021-02-24

## README

# NgxAzm

Welcome to ngx-azm , it is the first npm package for me , and I will try to add the most resuable code we need in our real projects .

It contains: 

## AzmTranslateBackendPipe

# Import

`import { AzmTranslateBackendPipe } from 'ngx-azm'`

# Usage
 
`{{ Object | azmTranslateBackend: selectedLanguage : propertyName :isLanguagePrefix}}`

Let's assume we have object like this from backend: <br/>

`let a = { arGreeting:'مرحبا' , enGreeting:'Hello' , titleEn:'Software Developer' , titleAr:'مطور برامج'  };`

If we need to get the english translation of greeting, we will use like that:  <br/>

`{{ a | azmTranslateBackend:'en':'greeting':true}}`

in this case the language abreviation is prefix , so we send true. But in the other case in title with arabic language we will access like that:  <br/>

`{{ a | azmTranslateBackend:'ar':'title':false}}`


Hope you enjoy and feel free to contribute to it.

Thanks

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