15 lines
316 B
Go
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")
|
|
}
|
|
}
|