Maganement of available locales in MicrosoftTranslateClient
- Create remote_available_locales method to recover available locales from microsoft tanslate client. This method will be useful to display the translation button as long as the locale sent is valid. - Create parse_locale method: Need parse available locales in Consul to will be valid on Microsoft Translate Client
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
require "translator-text"
|
||||
include SentencesParser
|
||||
include RemoteAvailableLocales
|
||||
|
||||
class MicrosoftTranslateClient
|
||||
CHARACTERS_LIMIT_PER_REQUEST = 5000
|
||||
|
||||
Reference in New Issue
Block a user