Skip to content

Commit

Permalink
fix: translation
Browse files Browse the repository at this point in the history
  • Loading branch information
KambojRajan committed Sep 23, 2024
1 parent f1e9b3d commit d590ea5
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 32 deletions.
66 changes: 34 additions & 32 deletions app/[locale]/academics/programmes/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Fragment } from 'react';
import Heading from '~/components/heading';

import ImageHeader from '~/components/image-header';
import {
Expand All @@ -9,12 +10,15 @@ import {
TableHeader,
TableRow,
} from '~/components/ui';
import { getTranslations } from '~/i18n/translations';

export default function Programmes({
export default async function Programmes({
params: { locale },
}: {
params: { locale: string };
}) {
const text = (await getTranslations(locale)).Programmes;

const btech = [
{ name: 'Civil Engineering', seats: 140 },
{ name: 'Computer Engineering', seats: 210 },
Expand Down Expand Up @@ -135,26 +139,23 @@ export default function Programmes({

return (
<>
<ImageHeader title={'Programmes'} src={`departments/cs/banner.png`} />
<ImageHeader title={'Programmes'} src="slideshow/image02.jpg" />

<article className="container mb-8">
<h2 className="mb-4 text-3xl font-semibold">B. Tech.</h2>
<Heading
glyphDirection={'ltr'}
heading="h2"
text={text.btech.toUpperCase()}
/>
<p className="rounded-md bg-neutral-50 p-5">
<strong>Courses of Study:</strong> The Institute offers courses of
study leading to B.Tech., M.Tech. degree and research facilities
leading to the degree of Doctor of Philosophy. The medium of
instructions and examination is English. The Institute has assumed the
status of deemed University. The courses include study at the
Institute, visits to work sites and practical training. In the
Institute Workshops and in approved Engineering works. There is NIT (A
Deemed University) Examination at the end of each semester. Courses of
study are offered in the following disciplines:
<strong>{text.courseOfStudy}</strong> {text.btechAbout}
</p>
<br />
<Table className="mt-4">
<TableHeader>
<TableRow>
<TableHead>Discipline</TableHead>
<TableHead>No. of Seats</TableHead>
<TableHead>{text.discipline}</TableHead>
<TableHead>{text.noOfSeats}</TableHead>
</TableRow>
</TableHeader>
<TableBody>
Expand All @@ -169,26 +170,23 @@ export default function Programmes({
</article>

<article className="container mb-8">
<h2 className="mb-4 text-3xl font-semibold">M. Tech.</h2>
<Heading
glyphDirection={'ltr'}
heading="h2"
text={text.mtech.toUpperCase()}
/>
<p className="rounded-md bg-neutral-50 p-5">
<strong>Courses of Study:</strong> Teaching in each academic year is
divided into two semesters. The duration of the course is four
semesters for regular students and six semesters for part-time
students (for NIT, Kurukshetra employees only). All the admitted
candidates would be governed by the Academic Regulations for
Post-Graduate Programmes, as laid down by the National Institute of
Technology (Institution of National Importance), Kurukshetra. The
M.Tech seats are first filled by GATE-qualified candidates, then by
industry-sponsored candidates and if seats remain vacant, by other
candidates. The non-GATE candidates are not eligible for scholarships.
<strong>{text.courseOfStudy}</strong> {text.mtechAbout}
</p>
<br />
<h4 className="mt-4 text-2xl font-semibold">Specialization</h4>
<h4 className="mt-4 text-2xl font-semibold">
{text.secialization.toUpperCase()}
</h4>
<Table className="mt-2">
<TableHeader>
<TableRow>
<TableHead>Discipline</TableHead>
<TableHead>Specializations</TableHead>
<TableHead>{text.discipline}</TableHead>
<TableHead>{text.secialization}</TableHead>
</TableRow>
</TableHeader>
<TableBody>
Expand All @@ -209,13 +207,17 @@ export default function Programmes({
</article>

<article className="container mb-8">
<h4 className="mt-4 text-2xl font-semibold">Seat Distribution</h4>
<Heading
glyphDirection={'ltr'}
heading="h2"
text={text.seatDistribution.toUpperCase()}
/>
<Table className="mt-2">
<TableHeader>
<TableRow>
<TableHead>Deptt./ Schools</TableHead>
<TableHead>Specialization</TableHead>
<TableHead>No. of Seats</TableHead>
<TableHead>{text.departmentAndSchools}</TableHead>
<TableHead>{text.secialization}</TableHead>
<TableHead>{text.noOfSeats}</TableHead>
</TableRow>
</TableHeader>
<TableBody>
Expand Down
14 changes: 14 additions & 0 deletions i18n/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,20 @@ const text: Translations = {
},
logout: 'LOG OUT',
},
Programmes: {
btechAbout:
'The Institute offers courses of study leading to B.Tech., M.Tech. degree and research facilities leading to the degree of Doctor of Philosophy. The medium of instructions and examination is English. The Institute has assumed the status of deemed University. The courses include study at the Institute, visits to work sites and practical training. In the Institute Workshops and in approved Engineering works. There is NIT (A Deemed University) Examination at the end of each semester. Courses of study are offered in the following disciplines:',
mtechAbout:
'Teaching in each academic year is divided into two semesters. The duration of the course is four semesters for regular students and six semesters for part-time students (for NIT, Kurukshetra employees only). All the admitted candidates would be governed by the Academic Regulations for Post-Graduate Programmes, as laid down by the National Institute of Technology (Institution of National Importance), Kurukshetra. The M.Tech seats are first filled by GATE-qualified candidates, then by industry-sponsored candidates and if seats remain vacant, by other candidates. The non-GATE candidates are not eligible for scholarships.',
courseOfStudy: 'Courses of Study:',
departmentAndSchools: 'Deptt./ Schools',
noOfSeats: 'No. of Seats',
secialization: 'specialization',
discipline: 'Discipline',
btech: 'B. tech',
mtech: 'M. tech',
seatDistribution: 'Seat Distribution',
},
Search: {
placeholder: 'Quick Search...',
categories: {
Expand Down
14 changes: 14 additions & 0 deletions i18n/hi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,20 @@ const text: Translations = {
},
logout: 'प्रस्थान करें',
},
Programmes: {
btechAbout:
'संस्थान बी.टेक., एम.टेक. की डिग्री की ओर ले जाने वाले पाठ्यक्रम और डॉक्टरेट ऑफ फिलॉसफी की डिग्री की ओर अनुसंधान सुविधाएँ प्रदान करता है। शिक्षा और परीक्षा का माध्यम अंग्रेजी है। संस्थान ने डीम्ड विश्वविद्यालय का दर्जा प्राप्त कर लिया है। पाठ्यक्रमों में संस्थान में अध्ययन, कार्य स्थलों का दौरा और व्यावहारिक प्रशिक्षण शामिल हैं। संस्थान की कार्यशालाओं में और अनुमोदित इंजीनियरिंग कार्यों में। प्रत्येक सेमेस्टर के अंत में डीम्ड विश्वविद्यालय की परीक्षा होती है। अध्ययन के पाठ्यक्रम निम्नलिखित विषयों में प्रस्तुत किए जाते हैं:',
mtechAbout:
'प्रत्येक शैक्षणिक वर्ष में शिक्षण दो सेमेस्टरों में विभाजित होता है। नियमित छात्रों के लिए पाठ्यक्रम की अवधि चार सेमेस्टर और पार्ट-टाइम छात्रों (केवल एनआईटी, कुरुक्षेत्र कर्मचारियों के लिए) के लिए छह सेमेस्टर होती है। सभी प्रवेशित उम्मीदवार राष्ट्रीय प्रौद्योगिकी संस्थान (राष्ट्रीय महत्व का संस्थान), कुरुक्षेत्र द्वारा निर्धारित पोस्ट-ग्रेजुएट कार्यक्रमों के लिए शैक्षणिक नियमों द्वारा संचालित होंगे। एम.टेक. सीटें पहले GATE-योग्य उम्मीदवारों द्वारा भरी जाती हैं, फिर उद्योग द्वारा प्रायोजित उम्मीदवारों द्वारा, और यदि सीटें खाली रहती हैं, तो अन्य उम्मीदवारों द्वारा भरी जाती हैं। गैर-GATE उम्मीदवार छात्रवृत्ति के लिए पात्र नहीं होते हैं।',
courseOfStudy: 'अध्ययन के पाठ्यक्रम:',
departmentAndSchools: 'विभाग/ स्कूल',
noOfSeats: 'सीटों की संख्या',
secialization: 'विशेषज्ञता',
discipline: 'विषय',
btech: 'बी.टेक',
mtech: 'एम.टेक',
seatDistribution: 'सीट वितरण',
},
Search: {
placeholder: 'त्वरित खोज...',
categories: {
Expand Down
12 changes: 12 additions & 0 deletions i18n/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,18 @@ export interface Translations {
quickSend: { title: string };
};
};
Programmes: {
btechAbout: string;
mtechAbout: string;
courseOfStudy: string;
departmentAndSchools: string;
noOfSeats: string;
secialization: string;
discipline: string;
btech: string;
mtech: string;
seatDistribution: string;
};
Search: {
placeholder: string;
categories: {
Expand Down

0 comments on commit d590ea5

Please sign in to comment.