Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:02,060 --> 00:00:03,910
Now for this course section,
2
00:00:03,910 --> 00:00:08,150
I will actually use that little events project we worked on.
3
00:00:08,150 --> 00:00:11,120
So attached you find the latest snapshot of this.
4
00:00:11,120 --> 00:00:13,730
If you download it, you need to run npm install.
5
00:00:13,730 --> 00:00:15,330
And then once you did that,
6
00:00:15,330 --> 00:00:19,620
bring up the development server with npm run dev.
7
00:00:19,620 --> 00:00:21,540
This will give you this application year
8
00:00:21,540 --> 00:00:25,220
and that's what we worked on over the last course sections.
9
00:00:25,220 --> 00:00:28,260
Now the first aspect into which I want to dive here
10
00:00:28,260 --> 00:00:33,260
is the metadata that had data we could add to every page
11
00:00:33,540 --> 00:00:36,940
because if we inspect our page here
12
00:00:36,940 --> 00:00:40,420
and we have a look not at the body but at the head section,
13
00:00:40,420 --> 00:00:44,070
which carries important metadata and information
14
00:00:44,070 --> 00:00:47,440
for the browser and for search engines,
15
00:00:47,440 --> 00:00:51,130
then we see that it's pretty empty.
16
00:00:51,130 --> 00:00:53,260
We got no description here.
17
00:00:53,260 --> 00:00:55,860
We have no title for this page.
18
00:00:55,860 --> 00:00:57,440
We've got a bunch of imports,
19
00:00:57,440 --> 00:00:58,880
which are added automatically
20
00:00:58,880 --> 00:01:02,570
by next JS for all our styles and so on
21
00:01:02,570 --> 00:01:05,670
but we don't have that metadata,
22
00:01:05,670 --> 00:01:09,080
that extra data which we typically want to provide
23
00:01:09,080 --> 00:01:10,840
on our page.
24
00:01:10,840 --> 00:01:12,450
And, of course, that is something
25
00:01:12,450 --> 00:01:14,630
which we definitely do want to have
26
00:01:14,630 --> 00:01:16,940
on the application we're building
27
00:01:16,940 --> 00:01:19,570
because that enhances the user experience
28
00:01:19,570 --> 00:01:20,860
to a certain extent,
29
00:01:20,860 --> 00:01:23,130
depending on what we set there.
30
00:01:23,130 --> 00:01:23,963
For example,
31
00:01:23,963 --> 00:01:27,630
showing a title which would show up in a tab up there
32
00:01:27,630 --> 00:01:30,680
but it's also crucial for search engines
33
00:01:30,680 --> 00:01:32,780
because search engine crawlers
34
00:01:32,780 --> 00:01:36,530
like the Google crawler will have a look at the title
35
00:01:36,530 --> 00:01:39,950
and the description set in that metadata.
36
00:01:39,950 --> 00:01:42,230
And therefore, it is something we want to set.
37
00:01:42,230 --> 00:01:47,023
And thankfully, next JS makes setting such head data easy.
2892
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.