Class: LokaliseRails::GlobalConfig

Inherits:
LokaliseManager::GlobalConfig
  • Object
show all
Defined in:
lib/lokalise_rails/global_config.rb

Overview

Extends ‘LokaliseManager::GlobalConfig` to provide a global configuration specific to the LokaliseRails gem in a Rails application.

Class Method Summary collapse

Class Method Details

.locales_pathString

Returns the path to the directory where translation files are stored.

Defaults to ‘config/locales` under the Rails application root if not explicitly set.

Returns:

  • (String)

    Absolute path to the locales directory.



13
14
15
# File 'lib/lokalise_rails/global_config.rb', line 13

def locales_path
  @locales_path || "#{LokaliseRails::Utils.root}/config/locales"
end