forked from jackyzha0/quartz
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add internationalization (i18n) support (jackyzha0#182)
- Loading branch information
1 parent
e38eaa9
commit 25ba115
Showing
19 changed files
with
189 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
[404_message] | ||
other = "يبدو أنك ضللت الطريق. هذه الصفحة غير موجودة (أو قد تكون خاصة)." | ||
|
||
[404_back] | ||
other = "↳ العودة للرئيسية." | ||
|
||
[all_posts] | ||
other = "كل منشورات {{.Title}}" | ||
|
||
[last_updated] | ||
other = "آخر تعديل" | ||
|
||
[notes_count] | ||
other = "ملاحظات بهذه التسمية" | ||
|
||
[first_10] | ||
other = "(تعرض أول 10 نتائج فقط)" | ||
|
||
[tag] | ||
other = "التسمية" | ||
|
||
[backlinks] | ||
other = "الروابط الخلفية" | ||
|
||
[no_backlinks] | ||
other = "لا توجد روابط خلفية" | ||
|
||
[home] | ||
other = "الرئيسية" | ||
|
||
[light_mode] | ||
other = "السمة الفاتحة" | ||
|
||
[dark_mode] | ||
other = "السمة الداكنة" | ||
|
||
[edit_source] | ||
other = "تعديل المصدر" | ||
|
||
[interactive_graph] | ||
other = "المخطط التفاعلي" | ||
|
||
[search] | ||
other = "البحث" | ||
|
||
[search_icon] | ||
other = "أيقونة البحث" | ||
|
||
[icon_search] | ||
other = "أيقونة فتح نافذة البحث" | ||
|
||
[recent_notes] | ||
other = "الملاحظات اﻷخيرة" | ||
|
||
[first_3_notes] | ||
other = "أول 3 {{ .notes }}" | ||
|
||
[search_for_something] | ||
other = "ابحث عن شيء ما..." | ||
|
||
[toc] | ||
other = "الفهرس" | ||
|
||
[copyright] | ||
other = "صُمم بواسطة {{ .name }} باستخدام <a href='https://github.com/jackyzha0/quartz'>كوارتز</a>، {{ .year }} ©" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
[404_message] | ||
other = "Hey! You look a little lost. This page doesn't exist (or may be private)." | ||
|
||
[404_back] | ||
other = "↳ Let's get you home." | ||
|
||
[all_posts] | ||
other = "All {{.Title}}" | ||
|
||
[last_updated] | ||
other = "Last updated" | ||
|
||
[notes_count] | ||
other = "notes with this tag" | ||
|
||
[first_10] | ||
other = "showing first 10 results" | ||
|
||
[tag] | ||
other = "Tag" | ||
|
||
[backlinks] | ||
other = "Backlinks" | ||
|
||
[no_backlinks] | ||
other = "No backlinks found" | ||
|
||
[home] | ||
other = "Home" | ||
|
||
[light_mode] | ||
other = "Light Mode" | ||
|
||
[dark_mode] | ||
other = "Dark Mode" | ||
|
||
[edit_source] | ||
other = "Edit Source" | ||
|
||
[interactive_graph] | ||
other = "Interactive Graph" | ||
|
||
[search] | ||
other = "Search" | ||
|
||
[search_icon] | ||
other = "Search Icon" | ||
|
||
[icon_search] | ||
other = "Icon to open search" | ||
|
||
[recent_notes] | ||
other = "Recent Notes" | ||
|
||
[first_3_notes] | ||
other = "first 3 {{ .notes }}" | ||
|
||
[search_for_something] | ||
other = "Search for something..." | ||
|
||
[toc] | ||
other = "Table of Contents" | ||
|
||
[copyright] | ||
other = "Made by {{ .name }} using <a href=\"https://github.com/jackyzha0/quartz\">Quartz</a>, © {{ .year }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<html lang="{{ .Lang }}"> | ||
{{ partial "head.html" . }} | ||
|
||
<body> | ||
<div class="singlePage"> | ||
{{partial "darkmode.html" .}} | ||
<div class="centered"> | ||
<h1>404.</h1> | ||
<h3>Hey! You look a little lost. This page doesn't exist (or may be private).</h3> | ||
<a href="{{ .Site.BaseURL }}">↳ Let's get you home.</a> | ||
<h3>{{ i18n "404_message" }}</h3> | ||
<a href="{{ .Site.BaseURL }}">{{ i18n "404_back" }}</a> | ||
</div> | ||
</div> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<html lang="{{ .Lang }}"> | ||
{{ block "head" . }} | ||
{{ end }} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{{if $.Site.Data.config.enableGitHubEdit}} | ||
<a href="{{$.Site.Data.config.GitHubLink}}/{{.File.Path}}" rel="noopener">Edit Source</a> | ||
<a href="{{$.Site.Data.config.GitHubLink}}/{{.File.Path}}" rel="noopener">{{ i18n "edit_source" }}</a> | ||
{{end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.