0.0.11 • Published 3 years ago

ngx-azm v0.0.11

Weekly downloads
153
License
-
Repository
-
Last release
3 years ago

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:

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

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

{{ 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:

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

Hope you enjoy and feel free to contribute to it.

Thanks

0.0.10

3 years ago

0.0.11

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago