All language subtitles for 8. Formatting the Currency

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic Download
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranî)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:01,340 --> 00:00:04,490 We've now got this currency pipe in action right here. 2 00:00:04,490 --> 00:00:08,960 Let's take a look and understand how we can actually change the style of currency that gets printed 3 00:00:08,960 --> 00:00:09,630 out. 4 00:00:09,660 --> 00:00:13,460 We're going to spend a little bit of time to learn about this as it turns out that a lot of the rules 5 00:00:13,520 --> 00:00:19,130 around the currency pipe are used on another pipe that is very similar called the decimal pipe which 6 00:00:19,130 --> 00:00:24,290 is used for printing out just normal numbers by learning about the currency pipe you're going to simultaneously 7 00:00:24,290 --> 00:00:27,890 understand a decimal pipe works as well. 8 00:00:27,910 --> 00:00:33,310 So first thing I want to take a look at is how we can change the currency code that is used in other 9 00:00:33,310 --> 00:00:36,290 words like the actual nation or the type of currency. 10 00:00:36,490 --> 00:00:43,750 Maybe we want to work with Japanese yen or Indian rupees or maybe in dollars or Swiss francs. 11 00:00:43,750 --> 00:00:44,350 I think it is. 12 00:00:44,350 --> 00:00:49,070 I've got my head anyways to figure out how to print out these other kinds of currency. 13 00:00:49,120 --> 00:00:53,940 We can scroll down a little bit and find the section here called parameters and we'll see that there 14 00:00:53,940 --> 00:00:59,630 is a parameter that we can provide called currency code on this currency code documentation. 15 00:00:59,630 --> 00:01:03,810 There's a link to something called ISO or 2 1 7. 16 00:01:03,880 --> 00:01:08,860 I'm going to open up that link inside of a new tab though this is a Wikipedia page. 17 00:01:08,960 --> 00:01:13,320 And if we scroll down a little bit we'll see all the different currency codes that we can use inside 18 00:01:13,320 --> 00:01:18,530 of angular but these are all the different currencies we can print out what we really care about is 19 00:01:18,530 --> 00:01:22,220 the three letter code on the far left hand side. 20 00:01:22,250 --> 00:01:24,760 Let's take a look at how we would print out Japanese yen. 21 00:01:24,770 --> 00:01:31,420 For example let's scroll down to the Jays to find Japanese or Japan I suppose. 22 00:01:31,440 --> 00:01:35,060 Here it is right here for Japanese yen. 23 00:01:35,060 --> 00:01:37,010 The code is JPY. 24 00:01:37,280 --> 00:01:43,220 If we wanted to print out Japanese yen we would go back over to our currency pipe right here. 25 00:01:43,220 --> 00:01:49,000 I put in a colon and then capital JPY like so now I'll save this. 26 00:01:49,110 --> 00:01:52,260 Go back toward my application enter in 20. 27 00:01:52,260 --> 00:01:54,400 And there we go. 28 00:01:54,480 --> 00:02:01,030 I've got the nicely formatted amount we can go back over once again and say How about South Korean won 29 00:02:01,460 --> 00:02:10,760 a RW do it update the currency code to a K or w enter and 20 Yep that works as well. 30 00:02:10,870 --> 00:02:15,490 You'll notice that these currency codes also automatically take care of the presence of a decimal. 31 00:02:15,610 --> 00:02:21,790 For example with Japanese yen there is no decimal in Japanese yen like one yen is the smallest form 32 00:02:21,820 --> 00:02:23,540 of currency you can have. 33 00:02:23,540 --> 00:02:27,960 But there should not be any decimal point here even if I enter a decimal into the input. 34 00:02:28,030 --> 00:02:32,940 You'll notice that angular automatically trims that amount for us which is really nice okay. 35 00:02:33,030 --> 00:02:35,530 So that's pretty much it for the currency pipe. 36 00:02:35,650 --> 00:02:38,180 We need to understand really is that currency code. 37 00:02:38,370 --> 00:02:43,170 But you also notice that there are a couple of different arguments on here as well such as display and 38 00:02:43,170 --> 00:02:45,240 digits info and so on. 39 00:02:45,240 --> 00:02:50,880 Let's take a look at the other pipe I just mentioned decimal pipe in the next video is as I just mentioned 40 00:02:50,940 --> 00:02:54,040 a lot of these arguments are very similar between the two. 41 00:02:54,060 --> 00:02:56,220 We'll take a look at decimal pipe very quickly. 42 00:02:56,220 --> 00:03:00,050 We're going to understand that digits info argument as well. 43 00:03:00,120 --> 00:03:02,310 It's so quick puzzle I'll see you in just a minute. 4629

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.