Skip to content

Commit

Permalink
🌐 Small locale fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ThijmenGThN committed Dec 16, 2023
1 parent 8e8924b commit 1412885
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 18 deletions.
8 changes: 4 additions & 4 deletions app/[locale]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ import type { Metadata } from 'next'

import { locales } from '@/helpers/navigation'

import '@/styles/globals.css'
import LocaleSwitcher from '@/components/LocaleSwitcher'
import Footer from '@/components/Footer'

import '@/styles/globals.css'

export const metadata: Metadata = {
title: 'Wiki • Thijmen Heuvelink',
Expand Down Expand Up @@ -60,9 +62,7 @@ export default function Layout({ children, params: { locale } }: { children: Rea
{children}
</div>

<p className="my-16 mx-auto text-xs text-center w-3/4 sm:w-1/2">
This knowledge base, serves as a valuable tool to simplify installations, troubleshoot common problems, and enhance the overall developer experience. All rights reserved.
</p>
<Footer />

</div>
</Localizer>
Expand Down
2 changes: 1 addition & 1 deletion app/[locale]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Link from "next/link"

import pb from "@/helpers/pocketbase"

import Search from "@/components/Search"
import Header from "@/components/Header"
import Link from "next/link"

export default async function Page() {

Expand Down
11 changes: 11 additions & 0 deletions src/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { useTranslations } from "next-intl"

export default function Footer() {
const t = useTranslations()

return (
<p className="my-16 mx-auto text-xs text-center w-3/4 sm:w-1/2">
{t('this-knowledge-base-serves-as-a-valuable-tool-to-simplify-installations-troubleshoot-common-problems-and-enhance-the-overall-developer-experience-all-rights-reserved')}
</p>
)
}
15 changes: 8 additions & 7 deletions src/locales/en.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
{
"log-in": "Log in",
"an-optimized-tech-stack-for-efficiency": "An optimized tech stack for efficiency.",
"read-more": "Read more",
"a-comprehensive-and-efficient-appstack-that-combines-the-power-of-next-js-and-the-flexibility-of-pocketbase-for-streamlined-web-application-development": "A comprehensive and efficient appstack that combines the power of Next.js and the flexibility of PocketBase for streamlined web application development.",
"open-pocketbase": "Open Pocketbase",
"branding": {
"title": "Wiki",
"description": "Maintained by Thijmen Heuvelink"
Expand Down Expand Up @@ -45,5 +40,11 @@
"name": "Name",
"email-address": "Email address"
},
"star-this-project-on-github": "Star this project on Github"
}
"star-this-project-on-github": "Star this project on Github",
"this-knowledge-base-serves-as-a-valuable-tool-to-simplify-installations-troubleshoot-common-problems-and-enhance-the-overall-developer-experience-all-rights-reserved": "This knowledge base, serves as a valuable tool to simplify installations, troubleshoot common problems, and enhance the overall developer experience. All rights reserved.",
"log-in": "Log in",
"an-optimized-tech-stack-for-efficiency": "An optimized tech stack for efficiency.",
"read-more": "Read more",
"a-comprehensive-and-efficient-appstack-that-combines-the-power-of-next-js-and-the-flexibility-of-pocketbase-for-streamlined-web-application-development": "A comprehensive and efficient appstack that combines the power of Next.js and the flexibility of PocketBase for streamlined web application development.",
"open-pocketbase": "Open Pocketbase"
}
10 changes: 4 additions & 6 deletions src/locales/nl.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
{
"log-in": "Inloggen",
"an-optimized-tech-stack-for-efficiency": "Een geoptimaliseerde tech-stack voor efficiëntie.",
"read-more": "Meer informatie",
"a-comprehensive-and-efficient-appstack-that-combines-the-power-of-next-js-and-the-flexibility-of-pocketbase-for-streamlined-web-application-development": "Een uitgebreide en efficiënte appstack die de kracht van Next.js en de flexibiliteit van PocketBase combineert voor gestroomlijnde ontwikkeling van webapplicaties.",
"open-pocketbase": "Open Pocketbase",
"branding": {
"title": "Wiki",
"description": "Onderhouden door Thijmen Heuvelink"
Expand Down Expand Up @@ -44,5 +39,8 @@
"information-related-to-your-personal-profile": "Informatie gerelateerd aan uw persoonlijke profiel",
"name": "Naam",
"email-address": "E-mailadres"
}
},
"star-this-project-on-github": "Ster dit project op GitHub",
"this-knowledge-base-serves-as-a-valuable-tool-to-simplify-installations-troubleshoot-common-problems-and-enhance-the-overall-developer-experience-all-rights-reserved": "Deze kennisbank dient als een waardevol hulpmiddel om installaties te vereenvoudigen, veelvoorkomende problemen op te lossen en de algehele ontwikkelaarservaring te verbeteren. ",
"open-pocketbase": "Open Pocketbase"
}

0 comments on commit 1412885

Please sign in to comment.