evcc-io/util/locale/locale_test.go
Maschga 06315153a5
i18n: Replace toml with json (#20817)
Co-authored-by: andig <cpuidle@gmx.de>
Co-authored-by: Michael Geers <michael@geers.tv>
2025-04-29 14:59:38 +02:00

16 lines
312 B
Go

package locale
import (
"os"
"testing"
"github.com/evcc-io/evcc/server/assets"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func TestLocales(t *testing.T) {
assets.I18n = os.DirFS("../../i18n")
require.NoError(t, Init())
assert.Less(t, 1, len(Bundle.LanguageTags()))
}