Cov txheej txheem:

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

Video: Localization nyob rau hauv angular yog dab tsi?

Video: Localization nyob rau hauv angular yog dab tsi?
Video: Tau kev seev vim ruam tsis deev. 9/28/2017 2024, Kaum ib hlis
Anonim

Localization yog tus txheej txheem ntawm kev txhais koj cov app thoob ntiaj teb rau hauv cov lus tshwj xeeb rau cov cheeb tsam tshwj xeeb. Angular ua kom yooj yim cov hauv qab no ntawm kev nthuav dav thoob ntiaj teb: Qhia hnub, tus lej, feem pua, thiab cov nyiaj hauv ib hom ntawv hauv zos.

Xav txog qhov no, koj ua li cas hauv zos?

Ntawm no yog qhov kev ua haujlwm dav dav ntawm Internationalization:

  1. Ua ntej, rho tawm UI cov hlua los ntawm koj tus lej app. Cais cov ntawv nyeem rau hauv cov ntaub ntawv sab nraud.
  2. Ua ntau yam ntaub ntawv, thiab txhais cov ntawv hauv txhua cov ntaub ntawv. Koj yuav muaj ib daim ntawv pov thawj rau txhua hom lus.

Ib yam li ntawd, i18n yog dab tsi hauv angular? lus i18n tooling rho tawm cov ntawv nyeem rau hauv cov ntaub ntawv txhais lus tus qauv. Tus neeg txhais lus (lossis peb tus kheej hauv qhov kev ua yeeb yam no) kho cov ntaub ntawv thiab rov qab cov ntawv nyeem hauv hom lus. Cov lub kaum sab xis compiler siv cov ntaub ntawv txhais los tsim ib qho tshiab ntawm daim ntawv thov nrog hom lus.

Ntawm no, dab tsi yog angular txhais?

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 thauj khoom thiab pluralization.

Dab tsi yog qhov siv ntawm i18n?

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.

Pom zoo: