Added basic i18n

This commit is contained in:
2026-03-10 15:18:34 +08:00
parent 093a8745ac
commit 7d1de5f781
25 changed files with 660 additions and 105 deletions

View File

@@ -7,6 +7,7 @@ import (
"net/http"
"path/filepath"
"strconv"
"strings"
query "github.com/tgckpg/golifehk/query"
"github.com/tgckpg/golifehk/utils"
@@ -52,9 +53,9 @@ func readBusStopData(r io.Reader) (*map[string]*BusStop, error) {
v, _ := strconv.ParseFloat(value, 64)
entry.Longitude = v
case "STATION_NAME_CHI":
entry.Name_zh = value
entry.Name_zh = strings.TrimSpace(value)
case "STATION_NAME_ENG":
entry.Name_en = value
entry.Name_en = strings.TrimSpace(value)
case "REFERENCE_ID":
entry.ReferenceId = value
default: