add demo translation file for zh-CN

上级 062a4539
......@@ -25,7 +25,11 @@ func TestExtract(t *testing.T) {
"Wow another string: %s": "",
}
TranslatableStrings(paths, functions, output)
err := TranslatableStrings(paths, functions, output)
if err != nil {
t.Fatalf("Error translating strings: %v", err)
}
var got map[string]interface{}
f, err := ioutil.ReadFile("testdata/test.json")
......
{
"minikube %s on %s (%s)": "",
"Creating %s VM (CPUs=%d, Memory=%dMB, Disk=%dMB) ...": "",
"Configuring environment for Kubernetes %s on %s %s": "",
"Pulling images ...": "",
"Launching Kubernetes ...": "",
"Verifying:": "",
"Done! kubectl is now configured to use %q": ""
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册