go-html/text_translate.go
Virgil cb75de9bf3
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
feat(html): isolate text translation fallback
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 19:22:48 +00:00

11 lines
240 B
Go

// SPDX-Licence-Identifier: EUPL-1.2
package html
func translateText(ctx *Context, key string, args ...any) string {
if ctx != nil && ctx.service != nil {
return ctx.service.T(key, args...)
}
return translateDefault(key, args...)
}