Skip to content

Only translated the first sentence of Chinese... #3

Open
@dave

Description

func main() {
	value := gtranslate.Translate{
		Text: "这是第一句话。 这是第二句话。",
		From: "zh-cn",
		To:   "en",
	}
	translated, err := gtranslate.Translator(value)
	if err != nil {
		panic(err)
	}
	fmt.Printf("%#v\n", translated.Text)
	// Output: "This is the first sentence."
}

Correct output should be: "This is the first sentence. This is the second sentence."

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions