Introduce an embedded-locale i18n package exposing a T() template function. UI strings across all templates and catalog category/item names are now translatable via locale JSON files, selectable through the new server.language config option. Falls back to English when a locale is missing or fails to load. Co-Authored-By: Claude Opus 4.6 <[email protected]>
28 lines
651 B
TOML
28 lines
651 B
TOML
# Solis Configuration Template
|
|
|
|
[server]
|
|
port = 8889
|
|
base_url = "http://localhost:8889"
|
|
read_timeout = "5s"
|
|
write_timeout = "10s"
|
|
# Language for the UI. Supported: "en" (English), "zh" (Chinese).
|
|
# Add new languages by creating a JSON file in internal/i18n/locales/.
|
|
language = "en"
|
|
|
|
[admin]
|
|
username = "admin"
|
|
# Default password: "admin" — CHANGE THIS IN PRODUCTION!
|
|
# Generate a new bcrypt hash using: ./solis --hash-password "your-password"
|
|
password_hash = "$2a$10$WXBoF7ZB7fIRl5smdGH9seqlNbXWiCS7ZbGNk0ONb9xjS8499gBpu"
|
|
session_hours = 24
|
|
|
|
[database]
|
|
path = "./data/solis.db"
|
|
|
|
[slugs]
|
|
length = 4
|
|
|
|
[upload]
|
|
dir = "./data/uploads"
|
|
max_size_mb = 50
|