Internationalization nyob rau hauv angular yog dab tsi?
Internationalization nyob rau hauv angular yog dab tsi?

Video: Internationalization nyob rau hauv angular yog dab tsi?

Video: Internationalization nyob rau hauv angular yog dab tsi?
Video: Peb Los Ua Neej Nyob Rau Ntiajteb (Nkauj Ntseeg Vajtswv) 2024, Kaum ib hlis
Anonim

Angular thiab ib 18n txuas

Internationalization yog tus txheej txheem ntawm kev tsim thiab npaj koj lub app kom siv tau ntau hom lus. Localization yog txheej txheem ntawm kev txhais koj lub app thoob ntiaj teb rau hauv cov lus tshwj xeeb rau cov cheeb tsam tshwj xeeb

Ntxiv mus, txhais li cas hauv angular?

lub kaum sab xis - txhais yog ib AngularJS module uas ua rau koj lub neej yooj yim dua thaum nws los txog rau i18n thiab l10n nrog rau tub nkeeg loading thiab pluralization.

Ib sab saum toj no, NGX txhais li cas? NGX - Txhais yog lub tsev qiv ntawv thoob ntiaj teb rau Angular. Nws cia koj txhais cov lus txhais rau koj cov ntsiab lus sib txawv thiab hloov ntawm lawv yooj yim. Mus saib qhov demo ntawm StackBlitz. Nws muab rau koj nkag mus rau ib qho kev pabcuam, cov lus qhia thiab cov yeeb nkab los tswj cov ntsiab lus dynamic lossis zoo li qub.

Hauv qhov no, kev siv i18n yog dab tsi?

Internationalization (qee zaum luv rau " I18 N , lub ntsiab lus "Kuv - kaum yim tsab ntawv -N") yog cov txheej txheem ntawm kev npaj thiab siv cov khoom thiab cov kev pabcuam kom lawv tuaj yeem hloov tau yooj yim rau cov lus thiab kab lis kev cai hauv zos, txheej txheem hu ua localization.

angular txhawb hom lus dab tsi?

Angular 2 txawv ntawm Angular JS hais txog kev txhawb nqa hom lus. Nrog Angular JS koj feem ntau program hauv JavaScript. Nrog Angular 2 lub vev xaib official muab piv txwv code hauv ntau hom lus; JavaScript, TypeScript thiab Dart. JavaScript yog ib qho kev siv ntawm cov ECMAScript txheem.

Pom zoo: