mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-26 21:36:23 +00:00
db5e701810
* feat(i18n): support parsing callouts Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com> * chore: move callout into components Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com> * chore: update arabic translation Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com> * fix: make sure to use correct items Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com> --------- Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
80 lines
1.6 KiB
TypeScript
80 lines
1.6 KiB
TypeScript
import { FullSlug } from "../../util/path"
|
|
|
|
export interface CalloutTranslation {
|
|
note: string
|
|
abstract: string
|
|
info: string
|
|
todo: string
|
|
tip: string
|
|
success: string
|
|
question: string
|
|
warning: string
|
|
failure: string
|
|
danger: string
|
|
bug: string
|
|
example: string
|
|
quote: string
|
|
}
|
|
|
|
export interface Translation {
|
|
propertyDefaults: {
|
|
title: string
|
|
description: string
|
|
}
|
|
components: {
|
|
callout: CalloutTranslation
|
|
backlinks: {
|
|
title: string
|
|
noBacklinksFound: string
|
|
}
|
|
themeToggle: {
|
|
lightMode: string
|
|
darkMode: string
|
|
}
|
|
explorer: {
|
|
title: string
|
|
}
|
|
footer: {
|
|
createdWith: string
|
|
}
|
|
graph: {
|
|
title: string
|
|
}
|
|
recentNotes: {
|
|
title: string
|
|
seeRemainingMore: (variables: { remaining: number }) => string
|
|
}
|
|
transcludes: {
|
|
transcludeOf: (variables: { targetSlug: FullSlug }) => string
|
|
linkToOriginal: string
|
|
}
|
|
search: {
|
|
title: string
|
|
searchBarPlaceholder: string
|
|
}
|
|
tableOfContents: {
|
|
title: string
|
|
}
|
|
}
|
|
pages: {
|
|
rss: {
|
|
recentNotes: string
|
|
lastFewNotes: (variables: { count: number }) => string
|
|
}
|
|
error: {
|
|
title: string
|
|
notFound: string
|
|
}
|
|
folderContent: {
|
|
folder: string
|
|
itemsUnderFolder: (variables: { count: number }) => string
|
|
}
|
|
tagContent: {
|
|
tag: string
|
|
tagIndex: string
|
|
itemsUnderTag: (variables: { count: number }) => string
|
|
showingFirst: (variables: { count: number }) => string
|
|
totalTags: (variables: { count: number }) => string
|
|
}
|
|
}
|
|
}
|