Skip to content

Support multiple source languages #281

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 12, 2019
Merged

Support multiple source languages #281

merged 3 commits into from
Feb 12, 2019

Conversation

soimort
Copy link
Owner

@soimort soimort commented Feb 12, 2019

trans already supports translation into multiple target languages (by joining two or more language codes using +). This PR further allows trans to handle multiple source languages as well, using the same pattern; might be helpful when a word has different meanings in different languages:

$ trans -b -s fi+it -t en matto
carpet
crazy

$ trans -b en+da:zh+ja fart
放屁
おなら
赶快
急ぎます

@soimort soimort merged commit f334f51 into develop Feb 12, 2019
@soimort soimort deleted the multiple-source-lang branch February 12, 2019 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant