All language subtitles for 006 Working with the __app.js_ File (and Why)_Downloadly.ir_en

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
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
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

Original subtitles

Besides reusing our Head content

inside of a component,

we also might have certain Head settings

that should be the same across all page components.

So we don't wanna copy and paste it

into every single page component.

Now we could solve this by outsourcing it

into a separate file, into a separate component

and then importing that into all the page components

and using it there, but we can also use another approach.

Next, JS has this _app.js file

and it also has another file which we'll be able to utilize.

Now, let's understand what the idea behind those files is

before we dive into them.

The _app.js file is your route app component

which in the end is rendered for every page

that is being displayed.

This component here, which is received through props,

this actually is the actual page component

that should be rendered.

MyApp, this component here is rendered by Next.js

and this component prop will automatically be set

by Next to JS so you don't need to do anything for that.

But then you can utilize this _app.js file

such that as we're currently doing it,

you wrap your page content with our components.

Like here, I'm wrapping the Layout component

around the page component to give all pages the same layout

so the same navigation bar, for example.

So that actually is a file which we are already utilizing.

And of course, therefore we could also import Head here

from next/head imported into this app.js file

and then add Head here to set some generic setting

that applies to all our page components.

For example, we could add another meta tag here

with a name of viewport and then our content

of let's say, initial-scale=1.0, width=device-width.

This would be a meta tag which is often added to pages

to ensure that the page is responsive and scales correctly

and we therefore typically wanna add this

to all our pages, not just to some.

So that would be a great example for some head tax,

some head element, which you wanna add to all pages

but which you of course don't wanna copy around manually.

Therefore we can add it once in this app.js file

and if we do so, we see that

if I reload this events page for example,

and I inspect my rendered page,

then here this viewport name is part of this page.

So that works.

Now, this is applied to all the pages

by setting it up once in this _app.js file.

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