forked from jackyzha0/quartz
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔄 synced local 'quartz/' with remote 'quartz/'
- Loading branch information
Showing
10 changed files
with
375 additions
and
10 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
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,83 @@ | ||
import { Translation } from "./definition" | ||
|
||
export default { | ||
propertyDefaults: { | ||
title: "Senza titolo", | ||
description: "Nessuna descrizione", | ||
}, | ||
components: { | ||
callout: { | ||
note: "Nota", | ||
abstract: "Astratto", | ||
info: "Info", | ||
todo: "Da fare", | ||
tip: "Consiglio", | ||
success: "Completato", | ||
question: "Domanda", | ||
warning: "Attenzione", | ||
failure: "Errore", | ||
danger: "Pericolo", | ||
bug: "Bug", | ||
example: "Esempio", | ||
quote: "Citazione", | ||
}, | ||
backlinks: { | ||
title: "Link entranti", | ||
noBacklinksFound: "Nessun link entrante", | ||
}, | ||
themeToggle: { | ||
lightMode: "Tema chiaro", | ||
darkMode: "Tema scuro", | ||
}, | ||
explorer: { | ||
title: "Esplora", | ||
}, | ||
footer: { | ||
createdWith: "Creato con", | ||
}, | ||
graph: { | ||
title: "Vista grafico", | ||
}, | ||
recentNotes: { | ||
title: "Note recenti", | ||
seeRemainingMore: ({ remaining }) => `Vedi ${remaining} altro →`, | ||
}, | ||
transcludes: { | ||
transcludeOf: ({ targetSlug }) => `Transclusione di ${targetSlug}`, | ||
linkToOriginal: "Link all'originale", | ||
}, | ||
search: { | ||
title: "Cerca", | ||
searchBarPlaceholder: "Cerca qualcosa", | ||
}, | ||
tableOfContents: { | ||
title: "Tabella dei contenuti", | ||
}, | ||
contentMeta: { | ||
readingTime: ({ minutes }) => `${minutes} minuti`, | ||
}, | ||
}, | ||
pages: { | ||
rss: { | ||
recentNotes: "Note recenti", | ||
lastFewNotes: ({ count }) => `Ultime ${count} note`, | ||
}, | ||
error: { | ||
title: "Non trovato", | ||
notFound: "Questa pagina è privata o non esiste.", | ||
}, | ||
folderContent: { | ||
folder: "Cartella", | ||
itemsUnderFolder: ({ count }) => | ||
count === 1 ? "1 oggetto in questa cartella" : `${count} oggetti in questa cartella.`, | ||
}, | ||
tagContent: { | ||
tag: "Etichetta", | ||
tagIndex: "Indice etichette", | ||
itemsUnderTag: ({ count }) => | ||
count === 1 ? "1 oggetto con questa etichetta" : `${count} oggetti con questa etichetta.`, | ||
showingFirst: ({ count }) => `Prime ${count} etichette.`, | ||
totalTags: ({ count }) => `Trovate ${count} etichette totali.`, | ||
}, | ||
}, | ||
} as const satisfies Translation |
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,81 @@ | ||
import { Translation } from "./definition" | ||
|
||
export default { | ||
propertyDefaults: { | ||
title: "제목 없음", | ||
description: "설명 없음", | ||
}, | ||
components: { | ||
callout: { | ||
note: "노트", | ||
abstract: "개요", | ||
info: "정보", | ||
todo: "할일", | ||
tip: "팁", | ||
success: "성공", | ||
question: "질문", | ||
warning: "주의", | ||
failure: "실패", | ||
danger: "위험", | ||
bug: "버그", | ||
example: "예시", | ||
quote: "인용", | ||
}, | ||
backlinks: { | ||
title: "백링크", | ||
noBacklinksFound: "백링크가 없습니다.", | ||
}, | ||
themeToggle: { | ||
lightMode: "라이트 모드", | ||
darkMode: "다크 모드", | ||
}, | ||
explorer: { | ||
title: "탐색기", | ||
}, | ||
footer: { | ||
createdWith: "Created with", | ||
}, | ||
graph: { | ||
title: "그래프 뷰", | ||
}, | ||
recentNotes: { | ||
title: "최근 게시글", | ||
seeRemainingMore: ({ remaining }) => `${remaining}건 더보기 →`, | ||
}, | ||
transcludes: { | ||
transcludeOf: ({ targetSlug }) => `${targetSlug}의 포함`, | ||
linkToOriginal: "원본 링크", | ||
}, | ||
search: { | ||
title: "검색", | ||
searchBarPlaceholder: "검색어를 입력하세요", | ||
}, | ||
tableOfContents: { | ||
title: "목차", | ||
}, | ||
contentMeta: { | ||
readingTime: ({ minutes }) => `${minutes} min read`, | ||
}, | ||
}, | ||
pages: { | ||
rss: { | ||
recentNotes: "최근 게시글", | ||
lastFewNotes: ({ count }) => `최근 ${count} 건`, | ||
}, | ||
error: { | ||
title: "Not Found", | ||
notFound: "페이지가 존재하지 않거나 비공개 설정이 되어 있습니다.", | ||
}, | ||
folderContent: { | ||
folder: "폴더", | ||
itemsUnderFolder: ({ count }) => `${count}건의 페이지`, | ||
}, | ||
tagContent: { | ||
tag: "태그", | ||
tagIndex: "태그 목록", | ||
itemsUnderTag: ({ count }) => `${count}건의 페이지`, | ||
showingFirst: ({ count }) => `처음 ${count}개의 태그`, | ||
totalTags: ({ count }) => `총 ${count}개의 태그를 찾았습니다.`, | ||
}, | ||
}, | ||
} as const satisfies Translation |
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,95 @@ | ||
import { Translation } from "./definition" | ||
|
||
export default { | ||
propertyDefaults: { | ||
title: "Без названия", | ||
description: "Описание отсутствует", | ||
}, | ||
components: { | ||
callout: { | ||
note: "Заметка", | ||
abstract: "Резюме", | ||
info: "Инфо", | ||
todo: "Сделать", | ||
tip: "Подсказка", | ||
success: "Успех", | ||
question: "Вопрос", | ||
warning: "Предупреждение", | ||
failure: "Неудача", | ||
danger: "Опасность", | ||
bug: "Баг", | ||
example: "Пример", | ||
quote: "Цитата", | ||
}, | ||
backlinks: { | ||
title: "Обратные ссылки", | ||
noBacklinksFound: "Обратные ссылки отсутствуют", | ||
}, | ||
themeToggle: { | ||
lightMode: "Светлый режим", | ||
darkMode: "Тёмный режим", | ||
}, | ||
explorer: { | ||
title: "Проводник", | ||
}, | ||
footer: { | ||
createdWith: "Создано с помощью", | ||
}, | ||
graph: { | ||
title: "Вид графа", | ||
}, | ||
recentNotes: { | ||
title: "Недавние заметки", | ||
seeRemainingMore: ({ remaining }) => | ||
`Посмотреть оставш${getForm(remaining, "уюся", "иеся", "иеся")} ${remaining} →`, | ||
}, | ||
transcludes: { | ||
transcludeOf: ({ targetSlug }) => `Переход из ${targetSlug}`, | ||
linkToOriginal: "Ссылка на оригинал", | ||
}, | ||
search: { | ||
title: "Поиск", | ||
searchBarPlaceholder: "Найти что-нибудь", | ||
}, | ||
tableOfContents: { | ||
title: "Оглавление", | ||
}, | ||
contentMeta: { | ||
readingTime: ({ minutes }) => `время чтения ~${minutes} мин.`, | ||
}, | ||
}, | ||
pages: { | ||
rss: { | ||
recentNotes: "Недавние заметки", | ||
lastFewNotes: ({ count }) => | ||
`Последн${getForm(count, "яя", "ие", "ие")} ${count} замет${getForm(count, "ка", "ки", "ок")}`, | ||
}, | ||
error: { | ||
title: "Страница не найдена", | ||
notFound: "Эта страница приватная или не существует", | ||
}, | ||
folderContent: { | ||
folder: "Папка", | ||
itemsUnderFolder: ({ count }) => | ||
`в этой папке ${count} элемент${getForm(count, "", "а", "ов")}`, | ||
}, | ||
tagContent: { | ||
tag: "Тег", | ||
tagIndex: "Индекс тегов", | ||
itemsUnderTag: ({ count }) => `с этим тегом ${count} элемент${getForm(count, "", "а", "ов")}`, | ||
showingFirst: ({ count }) => | ||
`Показыва${getForm(count, "ется", "ются", "ются")} ${count} тег${getForm(count, "", "а", "ов")}`, | ||
totalTags: ({ count }) => `Всего ${count} тег${getForm(count, "", "а", "ов")}`, | ||
}, | ||
}, | ||
} as const satisfies Translation | ||
|
||
function getForm(number: number, form1: string, form2: string, form5: string): string { | ||
const remainder100 = number % 100 | ||
const remainder10 = remainder100 % 10 | ||
|
||
if (remainder100 >= 10 && remainder100 <= 20) return form5 | ||
if (remainder10 > 1 && remainder10 < 5) return form2 | ||
if (remainder10 == 1) return form1 | ||
return form5 | ||
} |
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,81 @@ | ||
import { Translation } from "./definition" | ||
|
||
export default { | ||
propertyDefaults: { | ||
title: "无题", | ||
description: "无描述", | ||
}, | ||
components: { | ||
callout: { | ||
note: "笔记", | ||
abstract: "摘要", | ||
info: "提示", | ||
todo: "待办", | ||
tip: "提示", | ||
success: "成功", | ||
question: "问题", | ||
warning: "警告", | ||
failure: "失败", | ||
danger: "危险", | ||
bug: "错误", | ||
example: "示例", | ||
quote: "引用", | ||
}, | ||
backlinks: { | ||
title: "反向链接", | ||
noBacklinksFound: "无法找到反向链接", | ||
}, | ||
themeToggle: { | ||
lightMode: "亮色模式", | ||
darkMode: "暗色模式", | ||
}, | ||
explorer: { | ||
title: "探索", | ||
}, | ||
footer: { | ||
createdWith: "Created with", | ||
}, | ||
graph: { | ||
title: "关系图谱", | ||
}, | ||
recentNotes: { | ||
title: "最近的笔记", | ||
seeRemainingMore: ({ remaining }) => `查看更多${remaining}篇笔记 →`, | ||
}, | ||
transcludes: { | ||
transcludeOf: ({ targetSlug }) => `包含${targetSlug}`, | ||
linkToOriginal: "指向原始笔记的链接", | ||
}, | ||
search: { | ||
title: "搜索", | ||
searchBarPlaceholder: "搜索些什么", | ||
}, | ||
tableOfContents: { | ||
title: "目录", | ||
}, | ||
contentMeta: { | ||
readingTime: ({ minutes }) => `${minutes}分钟阅读`, | ||
}, | ||
}, | ||
pages: { | ||
rss: { | ||
recentNotes: "最近的笔记", | ||
lastFewNotes: ({ count }) => `最近的${count}条笔记`, | ||
}, | ||
error: { | ||
title: "无法找到", | ||
notFound: "私有笔记或笔记不存在。", | ||
}, | ||
folderContent: { | ||
folder: "文件夹", | ||
itemsUnderFolder: ({ count }) => `此文件夹下有${count}条笔记。`, | ||
}, | ||
tagContent: { | ||
tag: "标签", | ||
tagIndex: "标签索引", | ||
itemsUnderTag: ({ count }) => `此标签下有${count}条笔记。`, | ||
showingFirst: ({ count }) => `显示前${count}个标签。`, | ||
totalTags: ({ count }) => `总共有${count}个标签。`, | ||
}, | ||
}, | ||
} as const satisfies Translation |
Oops, something went wrong.