Skip to content
This repository was archived by the owner on Jun 14, 2024. It is now read-only.

Commit ce44cab

Browse files
add i18n
Signed-off-by: Kapunahele Wong <kapunahelewong@gmail.com>
1 parent bda6e9b commit ce44cab

File tree

20 files changed

+95
-1
lines changed

20 files changed

+95
-1
lines changed

config.yaml

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,40 @@ menu:
6565
url: /
6666
weight: 1
6767
- name: Documentation
68-
url: /docs/
68+
url: /en/docs/
6969
weight: 2
70+
71+
72+
# Internationalization
73+
74+
defaultContentLanguage: en
75+
76+
# show language abbreviation in url. If you enable this option, remember to update image paths
77+
# defaultContentLanguageInSubdir: true
78+
languages:
79+
ar:
80+
contentDir: content/ar
81+
languageName: عربى
82+
languagedirection: rtl
83+
title: مدونتي
84+
weight: 2
85+
en:
86+
contentDir: content/en
87+
languageName: English
88+
title: My project
89+
weight: 1
90+
esp:
91+
contentDir: content/spa
92+
languageName: Español
93+
title: Mi proyecto
94+
weight: 2
95+
fr:
96+
contentDir: content/fr
97+
languageName: Français
98+
title: Mon projet
99+
weight: 2
100+
pt-pt:
101+
contentDir: content/pt
102+
languageName: Português
103+
title: O meu blog
104+
weight: 3

content/ar/blah.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: "Introduction"
3+
description: "Arabic blah.md"
4+
toc: true
5+
weight: 1
6+
---
7+
8+
## Arabic languge docs
9+
10+
Add your Arabic language docs in this directory.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)