summaryrefslogtreecommitdiff
path: root/locale
diff options
from:
to:
context:
space:
mode:
authorGravatar Saya Andy <145215889+SayaAndy@users.noreply.github.com> 2025-08-18 19:28:18 +0700
committerGravatar GitHub <noreply@github.com> 2025-08-18 19:28:18 +0700
commit6401cf603f598a8008c69a14fe58f460009180a7 (patch)
treee275408d111e0fd98f46826ca6cabba6aafdd763 /locale
parent188d24d6cb7a1d753898b340359e3fcfaf426433 (diff)
parentf3b5c8136217fd57f7ae948a153f3510558a139d (diff)
downloadweb-0.6.0.tar.gz
web-0.6.0.zip
v0.6.0v0.6.0
- feat: add map page - feat: use webp of various sizes (320/560/800/1200/1600w) as thumbnails - feat: fixate gallery divs to viewport measures - feat: make thumbnails square - feat: remove recreating gallery on window resize - refactor: replace gap with margins - refactor: more line height in gallery captions - refactor: have routes in separate files
Diffstat (limited to 'locale')
-rw-r--r--locale/localization.en.yaml2
-rw-r--r--locale/localization.go5
-rw-r--r--locale/localization.ru.yaml2
3 files changed, 9 insertions, 0 deletions
diff --git a/locale/localization.en.yaml b/locale/localization.en.yaml
index 879fce8..f5ee6c9 100644
--- a/locale/localization.en.yaml
+++ b/locale/localization.en.yaml
@@ -7,3 +7,5 @@ BlogSearch:
ActionDateOrdered: 'Action Date'
PublicationDateOrdered: 'Publication Date'
ChooseAllTags: 'Choose All'
+GlobalMap:
+ Header: 'Global Map'
diff --git a/locale/localization.go b/locale/localization.go
index d5c6b48..56b6462 100644
--- a/locale/localization.go
+++ b/locale/localization.go
@@ -10,6 +10,7 @@ import (
type LocaleConfig struct {
TagsLabel string `yaml:"TagsLabel" json:"TagsLabel"`
BlogSearch BlogSearchConfig `yaml:"BlogSearch" json:"BlogSearch"`
+ GlobalMap GlobalMapConfig `yaml:"GlobalMap" json:"GlobalMap"`
}
type BlogSearchConfig struct {
@@ -22,6 +23,10 @@ type BlogSearchConfig struct {
ChooseAllTags string `yaml:"ChooseAllTags" json:"ChooseAllTags"`
}
+type GlobalMapConfig struct {
+ Header string `yaml:"Header" json:"Header"`
+}
+
func LoadConfig(path string, config *LocaleConfig) error {
fileBytes, err := os.ReadFile(path)
if err != nil {
diff --git a/locale/localization.ru.yaml b/locale/localization.ru.yaml
index 786665d..c236d1e 100644
--- a/locale/localization.ru.yaml
+++ b/locale/localization.ru.yaml
@@ -7,3 +7,5 @@ BlogSearch:
ActionDateOrdered: 'дате действия'
PublicationDateOrdered: 'времени публикации'
ChooseAllTags: 'Выбрать все'
+GlobalMap:
+ Header: 'Глобальная карта'