feat: Initialized Project
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package translations
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func Test_noObsoleteKeys(t *testing.T) {
|
||||
for language, translationMap := range translationRegistry {
|
||||
t.Run(fmt.Sprintf("obsolete_keys_check_%s", language), func(t *testing.T) {
|
||||
for key := range translationMap.Dictionary {
|
||||
_, englishContainsKey := DefaultTranslation.Dictionary[key]
|
||||
assert.True(t, englishContainsKey, "key %s is obsolete", key)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user