class TrustyCms::ExtensionPath
def locale_paths
in reverse order so that locale definitions override one another correctly.
Call the class method ExtensionPath.locale_paths to get a list of the locale files found in all enabled extensions
Returns a list of names of all the locale files found within this extension root.
def locale_paths if check_subdirectory('config/locales') Dir[File.join(path.to_s, 'config/locales', '*.{rb,yml}')] end end