summaryrefslogtreecommitdiff
path: root/locale/localization.go
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
Diffstat (limited to 'locale/localization.go')
-rw-r--r--locale/localization.go27
1 files changed, 0 insertions, 27 deletions
diff --git a/locale/localization.go b/locale/localization.go
index 7dbb554..d5c6b48 100644
--- a/locale/localization.go
+++ b/locale/localization.go
@@ -10,9 +10,6 @@ import (
type LocaleConfig struct {
TagsLabel string `yaml:"TagsLabel" json:"TagsLabel"`
BlogSearch BlogSearchConfig `yaml:"BlogSearch" json:"BlogSearch"`
- GlobalMap GlobalMapConfig `yaml:"GlobalMap" json:"GlobalMap"`
- HomePage HomePageConfig `yaml:"HomePage" json:"HomePage"`
- Metadata MetadataConfig `yaml:"Metadata" json:"Metadata"`
}
type BlogSearchConfig struct {
@@ -25,30 +22,6 @@ type BlogSearchConfig struct {
ChooseAllTags string `yaml:"ChooseAllTags" json:"ChooseAllTags"`
}
-type GlobalMapConfig struct {
- Header string `yaml:"Header" json:"Header"`
-}
-
-type HomePageConfig struct {
- Header string `yaml:"Header" json:"Header"`
- Contacts string `yaml:"Contacts" json:"Contacts"`
- DidYouKnowThat string `yaml:"DidYouKnowThat" json:"DidYouKnowThat"`
- SidebarDescription string `yaml:"SidebarDescription" json:"SidebarDescription"`
- HomePageDescription string `yaml:"HomePageDescription" json:"HomePageDescription"`
- BlogSearchDescription string `yaml:"BlogSearchDescription" json:"BlogSearchDescription"`
- MarkerMapDescription string `yaml:"MarkerMapDescription" json:"MarkerMapDescription"`
- ThemeSwitchDescription string `yaml:"ThemeSwitchDescription" json:"ThemeSwitchDescription"`
- Hymn1 string `yaml:"Hymn1" json:"Hymn1"`
- Hymn2 string `yaml:"Hymn2" json:"Hymn2"`
- Hymn3 string `yaml:"Hymn3" json:"Hymn3"`
- Hymn4 string `yaml:"Hymn4" json:"Hymn4"`
-}
-
-type MetadataConfig struct {
- Action string `yaml:"Action" json:"Action"`
- Published string `yaml:"Published" json:"Published"`
-}
-
func LoadConfig(path string, config *LocaleConfig) error {
fileBytes, err := os.ReadFile(path)
if err != nil {