Files
server/internal/translations/doc.go
T
AmirGhost11 ff300a5e84
Build / test-and-build (scribblers-linux-x64, ubuntu-latest) (push) Has been cancelled
Build / test-and-build (scribblers-macos-x64, macos-latest) (push) Has been cancelled
Build / test-and-build (scribblers-x64.exe, windows-latest) (push) Has been cancelled
feat: Initialized Project
2026-05-09 09:36:38 +03:30

16 lines
626 B
Go

/*
Package translations introduces a simple localization layer that can be
used by a templating engine.
Upon retrieving a localization package, values can be retrieved in both Go
code and the .html files via Get(key string). If a given key hasn't been
translated, the default localization pack will be accessed.
If the templating engine accesses non existent values, the server will panic.
This makes sure that we can't oversee the use of non-existent values.
Values must be plain text and not contain any HTML or CSS.
If values are to be inserted dynamically, placeholders can be placed with "%s".
*/
package translations