module I18n::Backend::CacheFile

def normalized_path(file)

Translate absolute filename to relative path for i18n key.
def normalized_path(file)
  return file unless path_roots
  path = path_roots.find(&file.method(:start_with?)) ||
         raise(InvalidLocaleData.new(file, 'outside expected path roots'))
  file.sub(path, path_roots.index(path).to_s)
end