Skip to content

Commit

Permalink
Merge pull request #7 from yubele/fix-erb
Browse files Browse the repository at this point in the history
Address the issue of ErbAdapter not being used.
  • Loading branch information
zealot128 authored Jan 29, 2024
2 parents 0307e53 + 83086fc commit 36f4416
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/extract_i18n/adapters/adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Adapter
def self.for(file_path)
case file_path
when /\.rb$/ then RubyAdapter
when /\.erb$/ then ErbAdapter
when /\.slim$/ then SlimAdapter
when /\.vue$/
if File.read(file_path)[/lang=.pug./]
Expand Down

0 comments on commit 36f4416

Please sign in to comment.