Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions internal/application/projects.go
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,7 @@ func (s *projectService) GetMapConfig(projectName string, user domain.User) (map
data["name"] = projectName
data["ows_url"] = fmt.Sprintf("/api/map/ows/%s", projectName)
data["ows_project"] = projectName
data["lang"] = settings.Language

topics := make([]domain.Topic, 0)

Expand Down
1 change: 1 addition & 0 deletions internal/domain/project_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,5 @@ type ProjectSettings struct {
TileResolutions []float64 `json:"tile_resolutions"`
Formatters []json.RawMessage `json:"formatters,omitempty"`
Proj4 map[string]string `json:"proj4,omitempty"`
Language string `json:"lang"`
}
5 changes: 5 additions & 0 deletions internal/server/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ func (s *Server) handleGetProject() func(c echo.Context) error {
data["notifications"] = messages
}
}

if data["lang"] == "" {
data["lang"] = s.Config.Language
}

data["status"] = 200
// delete(data, "layers")
// return c.JSON(http.StatusOK, data["layers"])
Expand Down