Include SentencesParser inside the right class

We were including it in the Object class, making its methods
available everywhere.
This commit is contained in:
Javi Martín
2023-01-30 17:20:08 +01:00
committed by taitus
parent 922632052c
commit b030a198a3

View File

@@ -1,7 +1,7 @@
require "translator-text" require "translator-text"
include RemoteTranslations::Microsoft::SentencesParser
class RemoteTranslations::Microsoft::Client class RemoteTranslations::Microsoft::Client
include SentencesParser
CHARACTERS_LIMIT_PER_REQUEST = 5000 CHARACTERS_LIMIT_PER_REQUEST = 5000
PREVENTING_TRANSLATION_KEY = "notranslate".freeze PREVENTING_TRANSLATION_KEY = "notranslate".freeze