Skip to content

Commit efa79e3

Browse files
committed
feat: update meta title
1 parent 2e6cafa commit efa79e3

File tree

13 files changed

+29
-57
lines changed

13 files changed

+29
-57
lines changed

apps/docs/messages/ar.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
{
2-
"baseOptions": {
3-
"title": "Next.js",
2+
"meta": {
3+
"title": "Next.js العربية",
44
"doc": "التوثيق",
55
"blog": "المدونة",
6-
"learn": "التعلم"
7-
},
8-
"meta": {
9-
"title": "Next.js - العربية",
6+
"learn": "التعلم",
107
"description": "تطبيقات React عالية الجودة وقابلة للتطوير. تستخدم الشركات الرائدة في العالم Next.js من Vercel لبناء مواقع الويب والتطبيقات الثابتة والديناميكية."
118
},
129
"sidebar": {

apps/docs/messages/de.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
{
2-
"baseOptions": {
3-
"title": "Next.js",
2+
"meta": {
3+
"title": "Next.js Deutsch",
44
"doc": "Dokumentation",
55
"blog": "Blog",
6-
"learn": "Lernen"
7-
},
8-
"meta": {
9-
"title": "Next.js - Deutsch",
6+
"learn": "Lernen",
107
"description": "Produktionsreife React-Anwendungen, die skalieren. Die weltweit führenden Unternehmen verwenden Next.js von Vercel, um statische und dynamische Websites und Webanwendungen zu erstellen."
118
},
129
"sidebar": {

apps/docs/messages/en.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
{
2-
"baseOptions": {
3-
"title": "Next.js",
2+
"meta": {
3+
"title": "Next.js English",
44
"doc": "Documentation",
55
"blog": "Blog",
6-
"learn": "Learn"
7-
},
8-
"meta": {
9-
"title": "Next.js - English",
6+
"learn": "Learn",
107
"description": "Production grade React applications that scale. The world's leading companies use Next.js by Vercel to build static and dynamic websites and web applications."
118
},
129
"sidebar": {

apps/docs/messages/es.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
{
2-
"baseOptions": {
3-
"title": "Next.js",
2+
"meta": {
3+
"title": "Next.js Español",
44
"doc": "Documentación",
55
"blog": "Blog",
6-
"learn": "Aprender"
7-
},
8-
"meta": {
9-
"title": "Next.js - Español",
6+
"learn": "Aprender",
107
"description": "Aplicaciones React de calidad de producción que escalan. Las empresas líderes del mundo usan Next.js de Vercel para construir sitios web y aplicaciones web estáticas y dinámicas."
118
},
129
"sidebar": {

apps/docs/messages/fr.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
{
2-
"baseOptions": {
3-
"title": "Next.js",
2+
"meta": {
3+
"title": "Next.js Français",
44
"doc": "Documentation",
55
"blog": "Blog",
6-
"learn": "Apprendre"
7-
},
8-
"meta": {
9-
"title": "Next.js - Français",
6+
"learn": "Apprendre",
107
"description": "Applications React de qualité production qui évoluent. Les entreprises leaders mondiales utilisent Next.js de Vercel pour construire des sites web et applications web statiques et dynamiques."
118
},
129
"sidebar": {

apps/docs/messages/ja.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
{
2-
"baseOptions": {
3-
"title": "Next.js",
2+
"meta": {
3+
"title": "Next.js 日本語",
44
"doc": "ドキュメント",
55
"blog": "ブログ",
6-
"learn": "学習"
7-
},
8-
"meta": {
9-
"title": "Next.js - 日本語",
6+
"learn": "学習",
107
"description": "スケールするプロダクション品質のReactアプリケーション。世界をリードする企業がVercelのNext.jsを使用して静的および動的なWebサイトやWebアプリケーションを構築しています。"
118
},
129
"sidebar": {

apps/docs/messages/ru.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
{
2-
"baseOptions": {
3-
"title": "Next.js",
2+
"meta": {
3+
"title": "Next.js Русский",
44
"doc": "Документация",
55
"blog": "Блог",
6-
"learn": "Изучение"
7-
},
8-
"meta": {
9-
"title": "Next.js - Русский",
6+
"learn": "Изучение",
107
"description": "Производственные React-приложения, которые масштабируются. Ведущие мировые компании используют Next.js от Vercel для создания статических и динамических веб-сайтов и веб-приложений."
118
},
129
"sidebar": {

apps/docs/messages/zh-hans.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
{
2-
"baseOptions": {
2+
"meta": {
33
"title": "Next.js 简体中文",
44
"doc": "文档",
55
"blog": "博客",
6-
"learn": "学习"
7-
},
8-
"meta": {
9-
"title": "Next.js - 简体中文",
6+
"learn": "学习",
107
"description": "生产级 React 应用,具备卓越扩展能力。全球领先企业都在用 Next.js by Vercel 构建静态和动态网站及 Web 应用。"
118
},
129
"sidebar": {

apps/docs/messages/zh-hant.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
{
2-
"baseOptions": {
2+
"meta": {
33
"title": "Next.js 繁體中文",
44
"doc": "文件",
55
"blog": "部落格",
6-
"learn": "學習"
7-
},
8-
"meta": {
9-
"title": "Next.js - 繁體中文",
6+
"learn": "學習",
107
"description": "生產級 React 應用,具備卓越擴展能力。全球領先企業都在用 Next.js by Vercel 構建靜態和動態網站及 Web 應用。"
118
},
129
"sidebar": {

apps/docs/src/app/(home)/blog/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Link from 'next/link';
66

77
export default function Page(): React.ReactElement {
88
const t = useTranslations('BlogPage');
9-
const tBase = useTranslations('baseOptions');
9+
const tBase = useTranslations('meta');
1010
const posts = [...blog.getPages()].sort(
1111
(a, b) => new Date(b.data.date).getTime() - new Date(a.data.date).getTime(),
1212
);
@@ -150,7 +150,7 @@ export default function Page(): React.ReactElement {
150150
}
151151

152152
export async function generateMetadata() {
153-
const t = await getTranslations('baseOptions');
153+
const t = await getTranslations('meta');
154154
return createMetadata({
155155
title: t('blog'),
156156
pathname: '/blog',

apps/docs/src/app/(home)/learn/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export default function LearnIndexPage() {
8888
}
8989

9090
export async function generateMetadata() {
91-
const t = await getTranslations('baseOptions');
91+
const t = await getTranslations('meta');
9292
return createMetadata({
9393
title: t('learn'),
9494
pathname: '/learn',

apps/docs/src/app/docs/[[...slug]]/docs.layout.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import { useBaseOptions } from '@/hooks/useLayoutOptions';
44
import { useRouterType } from '@/hooks/useRouterType';
5-
import type { RouterType } from '@/lib/const';
65
import { getDocsLayoutTree } from '@/lib/pageTree';
76
import { parseDocId } from '@/lib/utils';
87
import {

apps/docs/src/hooks/useLayoutOptions.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { useTranslations } from 'next-intl';
55
import Image from 'next/image';
66

77
export const useBaseOptions = () => {
8-
const t = useTranslations('baseOptions');
8+
const t = useTranslations('meta');
99
return {
1010
i18n: true,
1111
nav: {

0 commit comments

Comments
 (0)