1interface LanguageConfig {
2 title: string;
3 return: string;
4 writtenByClover: string;
5 translatedBy: (_: { author: string }) => string;
6 tableOfContents: string;
7}
8type LanguageMap = Record<string, LanguageConfig> & { en: LanguageConfig };
9
10export const languages: LanguageMap = {
11 en: {
12 title: "English",
13 return: "back to the home page",
14 writtenByClover: `clover caruso`, // "written by clover caruso" in other languages
15 translatedBy: ({ author }) => `translated by ${author}`,
16 tableOfContents: "Contents",
17 },
18 // cspell:disable
19 ko: {
20 title: "한국어",
21 return: "홈 페이지로 돌아가기",
22 writtenByClover: `clover caruso 작성`,
23 translatedBy: ({ author }) => `${author} 번역`,
24 tableOfContents: "Contents",
25 },
26 es: {
27 title: "Español",
28 return: "volver a la página principal",
29 writtenByClover: "escrito por clover caruso",
30 translatedBy: ({ author }) => `traducido por ${author}`,
31 tableOfContents: "Indice",
32 },
33 // cspell:enable
34};