Add i18n and optimise template parsing

This commit is contained in:
Andrew-71 2024-05-03 15:40:40 +03:00
parent a92e6b04b7
commit 6ff3d2e0ee
10 changed files with 100 additions and 35 deletions

15
i18n/en.json Normal file
View file

@ -0,0 +1,15 @@
{
"lang": "en",
"title.today": "Your day so far",
"title.days": "Previous days",
"title.notes": "Notes",
"link.today": "today",
"link.days": "previous days",
"link.notes": "notes",
"description.notes": "/notes/<name> for a new note",
"misc.date": "Today is",
"button.save": "Save"
}

15
i18n/ru.json Normal file
View file

@ -0,0 +1,15 @@
{
"lang": "ru",
"title.today": "Сегодняшний день",
"title.days": "Предыдущие дни",
"title.notes": "Заметки",
"link.today": "сегодня",
"link.days": "раньше",
"link.notes": "заметки",
"description.notes": "/notes/<название> для новой заметки",
"misc.date": "Сегодня",
"button.save": "Сохранить"
}