Class: LokaliseRails::GlobalConfig
- Inherits:
-
LokaliseManager::GlobalConfig
- Object
- LokaliseManager::GlobalConfig
- LokaliseRails::GlobalConfig
- 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
-
.locales_path ⇒ String
Returns the path to the directory where translation files are stored.
Class Method Details
.locales_path ⇒ String
Returns the path to the directory where translation files are stored.
Defaults to ‘config/locales` under the Rails application root if not explicitly set.
13 14 15 |
# File 'lib/lokalise_rails/global_config.rb', line 13 def locales_path @locales_path || "#{LokaliseRails::Utils.root}/config/locales" end |