Class: Phrase::Ota::Backend

Inherits:
I18n::Backend::Simple
  • Object
show all
Defined in:
lib/phrase/ota/backend.rb

Instance Method Summary collapse

Constructor Details

#initializeBackend

Returns a new instance of Backend.



8
9
10
11
12
# File 'lib/phrase/ota/backend.rb', line 8

def initialize
  @current_locale_versions = {}
  @initialized = true # initializing immeditaly as we don't want to wait until all OTA translations have been fetched
  start_polling
end

Instance Method Details

#available_localesObject



14
15
16
# File 'lib/phrase/ota/backend.rb', line 14

def available_locales
  Phrase::Ota.config.available_locales
end

#init_translationsObject



18
19
# File 'lib/phrase/ota/backend.rb', line 18

def init_translations
end