Class: Rosetta::Repositories::Local
- Inherits:
-
Rosetta::Repository
- Object
- Rosetta::Repository
- Rosetta::Repositories::Local
- Defined in:
- lib/rosetta/repositories/local.rb
Instance Method Summary collapse
Instance Method Details
#build_link(keys, **_args) ⇒ Object
13 14 15 16 |
# File 'lib/rosetta/repositories/local.rb', line 13 def build_link(keys, **_args) path = I18n.load_path.flatten.find { |filename| file_has_phrase?(filename, keys) } path && Pathname.new(path).relative_path_from(Rails.root) end |
#id ⇒ Object
5 6 7 |
# File 'lib/rosetta/repositories/local.rb', line 5 def id 'local' end |
#label ⇒ Object
9 10 11 |
# File 'lib/rosetta/repositories/local.rb', line 9 def label 'Repository Local' end |