go-html/default_translator_js_test.go
Virgil 9741659442
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
fix(html): honour locale in wasm translator
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 00:38:33 +00:00

15 lines
316 B
Go

//go:build js
// SPDX-Licence-Identifier: EUPL-1.2
package html
import "testing"
func TestDefaultTranslatorJS_AppliesLocale(t *testing.T) {
ctx := NewContext("fr-FR")
if got := Text("prompt.yes").Render(ctx); got != "o" {
t.Fatalf("Text(prompt.yes) with js default translator = %q, want %q", got, "o")
}
}