| 1 | interface LanguageConfig { |
| 2 | title: string; |
| 3 | return: string; |
| 4 | writtenByClover: string; |
| 5 | translatedBy: (_: { author: string }) => string; |
| 6 | tableOfContents: string; |
| 7 | } |
| 8 | type LanguageMap = Record<string, LanguageConfig> & { en: LanguageConfig }; |
| 9 | |
| 10 | export 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 | ko: { |
| 19 | title: "한국어", |
| 20 | return: "홈 페이지로 돌아가기", |
| 21 | writtenByClover: `clover caruso 작성`, |
| 22 | translatedBy: ({ author }) => `${author} 번역`, |
| 23 | tableOfContents: "Contents", |
| 24 | }, |
| 25 | es: { |
| 26 | title: "Español", |
| 27 | return: "volver a la página principal", |
| 28 | writtenByClover: "escrito por clover caruso", |
| 29 | translatedBy: ({ author }) => `traducido por ${author}`, |
| 30 | tableOfContents: "Indice", |
| 31 | }, |
| 32 | }; |