Skip to content

Commit bdc9466

Browse files
committed
feat(i18n): expand multilingual support with additional languages and translations
- Added support for Japanese, French, Spanish, Portuguese, Korean, Malay, Indonesian, and Russian. - Updated layout and home page components to include new translations for blog messages. - Introduced new documentation files for MultiPost in multiple languages.
1 parent bed8e6a commit bdc9466

12 files changed

+176
-2
lines changed

.cursor/rules/general.mdc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,9 @@ globs:
44
alwaysApply: true
55
---
66
This project is a Fumadocs.
7+
8+
## i18n
9+
1. 英文:xxx.mdx
10+
2. 简体中文:xxx.zh-Hans.mdx
11+
3. 繁体中文:xxx.zh-Hant.mdx
12+
4.

app/[lang]/(home)/page.tsx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,30 @@ const texts = {
1111
},
1212
'zh-Hant': {
1313
noBlogsMessage: "暫時還沒有部落格文章"
14+
},
15+
ja: {
16+
noBlogsMessage: "まだブログ記事がありません"
17+
},
18+
fr: {
19+
noBlogsMessage: "Aucun article de blog pour le moment"
20+
},
21+
es: {
22+
noBlogsMessage: "Aún no hay publicaciones en el blog"
23+
},
24+
pt: {
25+
noBlogsMessage: "Ainda não há postagens no blog"
26+
},
27+
ko: {
28+
noBlogsMessage: "아직 블로그 글이 없습니다"
29+
},
30+
ms: {
31+
noBlogsMessage: "Belum ada catatan blog lagi"
32+
},
33+
id: {
34+
noBlogsMessage: "Belum ada postingan blog"
35+
},
36+
ru: {
37+
noBlogsMessage: "Пока нет записей в блоге"
1438
}
1539
} as const;
1640

app/[lang]/layout.tsx

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ const zhHant: Partial<Translations> = {
99
search: '搜尋內容',
1010
};
1111

12+
const ja: Partial<Translations> = {};
13+
const fr: Partial<Translations> = {};
14+
const es: Partial<Translations> = {};
15+
const pt: Partial<Translations> = {};
16+
const ko: Partial<Translations> = {};
17+
const ms: Partial<Translations> = {};
18+
const id: Partial<Translations> = {};
19+
const ru: Partial<Translations> = {};
20+
1221
// available languages that will be displayed on UI
1322
// make sure `locale` is consistent with your i18n config
1423
const locales = [
@@ -24,6 +33,38 @@ const locales = [
2433
name: '繁體中文',
2534
locale: 'zh-Hant',
2635
},
36+
{
37+
name: '日本語',
38+
locale: 'ja',
39+
},
40+
{
41+
name: 'Français',
42+
locale: 'fr',
43+
},
44+
{
45+
name: 'Español',
46+
locale: 'es',
47+
},
48+
{
49+
name: 'Português',
50+
locale: 'pt',
51+
},
52+
{
53+
name: '한국어',
54+
locale: 'ko',
55+
},
56+
{
57+
name: 'Bahasa Melayu',
58+
locale: 'ms',
59+
},
60+
{
61+
name: 'Bahasa Indonesia',
62+
locale: 'id',
63+
},
64+
{
65+
name: 'Русский',
66+
locale: 'ru',
67+
},
2768
];
2869

2970
export default async function Layout({
@@ -40,7 +81,18 @@ export default async function Layout({
4081
i18n={{
4182
locale: lang,
4283
locales,
43-
translations: { 'zh-Hans': cn, 'zh-Hant': zhHant }[lang],
84+
translations: {
85+
'zh-Hans': cn,
86+
'zh-Hant': zhHant,
87+
ja,
88+
fr,
89+
es,
90+
pt,
91+
ko,
92+
ms,
93+
id,
94+
ru,
95+
}[lang],
4496
}}
4597
>
4698
{children}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: MultiPost - La herramienta definitiva para publicar en múltiples plataformas con un solo clic
3+
description: Presentación de la extensión MultiPost, una herramienta eficiente para creadores de contenido.
4+
---
5+
6+
# MultiPost - La herramienta definitiva para publicar en múltiples plataformas con un solo clic
7+
8+
Esta página estará disponible pronto en español.
9+
10+
TODO: Translation coming soon.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: MultiPost - L'outil ultime de publication multi-plateforme en un clic
3+
description: Présentation de l'extension MultiPost, un outil d'efficacité pour publier sur plusieurs plateformes.
4+
---
5+
6+
# MultiPost - L'outil ultime de publication multi-plateforme en un clic
7+
8+
Cette page sera bientôt disponible en français.
9+
10+
TODO: Translation coming soon.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: MultiPost - Alat Publikasi Multi-Platform Satu Klik Terbaik
3+
description: Memperkenalkan ekstensi browser MultiPost, alat efisiensi untuk pembuat konten.
4+
---
5+
6+
# MultiPost - Alat Publikasi Multi-Platform Satu Klik Terbaik
7+
8+
Halaman ini akan segera tersedia dalam Bahasa Indonesia.
9+
10+
TODO: Translation coming soon.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: MultiPost - 究極のワンクリック多プラットフォーム投稿ツール
3+
description: MultiPostブラウザ拡張機能のご紹介。コンテンツ制作者のための効率化ツール。
4+
---
5+
6+
# MultiPost - 究極のワンクリック多プラットフォーム投稿ツール
7+
8+
このページは近日中に日本語で公開予定です。
9+
10+
TODO: Translation coming soon.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: MultiPost - 궁극의 원클릭 멀티플랫폼 게시 도구
3+
description: MultiPost 브라우저 확장 프로그램 소개. 콘텐츠 제작자를 위한 효율성 도구.
4+
---
5+
6+
# MultiPost - 궁극의 원클릭 멀티플랫폼 게시 도구
7+
8+
이 페이지는 곧 한국어로 제공될 예정입니다.
9+
10+
TODO: Translation coming soon.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: MultiPost - Alat Penerbitan Berbilang Platform Satu Klik Terunggul
3+
description: Memperkenalkan sambungan pelayar MultiPost, alat kecekapan untuk pencipta kandungan.
4+
---
5+
6+
# MultiPost - Alat Penerbitan Berbilang Platform Satu Klik Terunggul
7+
8+
Halaman ini akan tersedia dalam Bahasa Melayu tidak lama lagi.
9+
10+
TODO: Translation coming soon.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: MultiPost - A ferramenta definitiva de publicação multiplataforma com um clique
3+
description: Apresentando a extensão MultiPost, uma ferramenta eficiente para criadores de conteúdo.
4+
---
5+
6+
# MultiPost - A ferramenta definitiva de publicação multiplataforma com um clique
7+
8+
Esta página estará disponível em breve em português.
9+
10+
TODO: Translation coming soon.

0 commit comments

Comments
 (0)