Module: Bisu
- Defined in:
- lib/bisu.rb,
lib/bisu/config.rb,
lib/bisu/logger.rb,
lib/bisu/translator.rb,
lib/bisu/knowledge_base.rb
Defined Under Namespace
Modules: Config, Logger Classes: GoogleDriveKB, KnowledgeBase, Translator
Class Method Summary collapse
Class Method Details
.run ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/bisu.rb', line 7 def self.run if config = Bisu::Config.parse("translatable.yml") kbase = Bisu::GoogleDriveKB.new(config[:sheet_id], config[:keys_column]) trans = Bisu::Translator.new(kbase, config[:type]) config[:in].each do |in_path| config[:out].each do |out| trans.translate(out[:language], in_path, out[:folder]) end end end Bisu::Logger.print_summary end |