Add RemoteAvailableLocales to new namespace
Add to new name space RemoteTranslations::Microsoft and rename to AvailableLocales.
This commit is contained in:
@@ -3,7 +3,7 @@ require "uri"
|
||||
require "cgi"
|
||||
require "json"
|
||||
|
||||
module RemoteAvailableLocales
|
||||
module RemoteTranslations::Microsoft::AvailableLocales
|
||||
|
||||
def load_remote_locales
|
||||
remote_available_locales.map { |locale| locale.first }
|
||||
@@ -1,6 +1,6 @@
|
||||
require "translator-text"
|
||||
include SentencesParser
|
||||
include RemoteAvailableLocales
|
||||
include RemoteTranslations::Microsoft::AvailableLocales
|
||||
|
||||
class RemoteTranslations::Microsoft::Client
|
||||
CHARACTERS_LIMIT_PER_REQUEST = 5000
|
||||
|
||||
Reference in New Issue
Block a user