简体   繁体   English

建议使用@vitalets/google-translate-api 之类的库或直接从 react-native 翻译?

[英]It is advisable using libraries like @vitalets/google-translate-api or translate directly from react-native?

I am testing these " translate " and " google-translate-api " libraries, they are fantastic, I can translate to all google translate languages directly in react-native, but they can give me problems since it is unlimited and free.我正在测试这些“ translate ”和“ google-translate-api ”库,它们很棒,我可以直接在 react-native 中翻译成所有 google translate 语言,但它们会给我带来问题,因为它是无限制且免费的。

I am building an application with a chat where people of different languages can chat and I am adding the option to translate the chats so that there can be a more fluid communication between people who speak different languages.我正在构建一个带有聊天功能的应用程序,不同语言的人可以在这里聊天,我正在添加翻译聊天的选项,以便说不同语言的人之间可以进行更流畅的交流。

When reviewing the code of these libraries I realize that they call this URL: https://translate.googleapis.com/translate_a/single?client=gtx&sl=$%7Bfrom%7D&tl=$%7Bto%7D&dt=t&q=${ encodeURI(text)}`在查看这些库的代码时,我意识到它们调用了这个 URL: https://translate.googleapis.com/translate_a/single?client=gtx&sl=$%7Bfrom%7D&tl=$%7Bto%7D&dt=t&q=${ encodeURI (文本)}`

This gives me the translated phrase as a result, in this way each user (client) can translate the chats directly from the application, but can calling that URL that is apparently free give me any problem?结果这给了我翻译的短语,这样每个用户(客户端)都可以直接从应用程序翻译聊天,但是调用那个显然免费的 URL 会给我任何问题吗?

This is not a legal forum.这不是一个法律论坛。 Nor should you rely on legal forums even if it were the case.即使是这样,您也不应该依赖法律论坛。 Your best course of action is to consult a lawyer that has experience with IP and licenses.您最好的做法是咨询具有知识产权和许可经验的律师。

Keep in mind that in general each license has its own caveat.请记住,通常每个许可证都有自己的警告。 And having available source code does not equal free-to-use as I heard some claim or assume.拥有可用的源代码并不像我听到的一些说法或假设那样可以免费使用。 It is an incorrect assumption and can lead to trouble.这是一个不正确的假设,可能会导致麻烦。 Second caveat of license is when using multiple third-parties.许可的第二个警告是在使用多个第三方时。 Some apparently "free-to-use" licenses (and I say "apparently" as some have some conditions, ie not for commercial use) might not be compatible with other apparently "free-to-use" licenses.一些表面上是“免费使用”的许可证(我说“显然”是因为有些有一些条件,即不能用于商业用途)可能与其他表面上是“免费使用”的许可证不兼容。 Again, consult a lawyer on how to handle such scenarios.同样,请咨询律师以了解如何处理此类情况。

This is as far as any "legal advice" can go on this forum.这是本论坛所能提供的任何“法律建议”。 TLDR: talk to a layer. TLDR:与一层交谈。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM