Sha256: b6034e24f654d5837e905766d61c42ec6a58037b95e359b73f12f388957014d1

Contents?: true

Size: 384 Bytes

Versions: 150

Compression:

Stored size: 384 Bytes

Contents

require "rails/generators"

module Generators
  module Avo
    class LocalesGenerator < ::Rails::Generators::Base
      source_root File.expand_path("templates", __dir__)

      namespace "avo:locales"
      desc "Add Avo locale files to your project."

      def create_files
        directory File.join(__dir__, "templates", "locales"), "config/locales"
      end
    end
  end
end

Version data entries

150 entries across 150 versions & 1 rubygems

Version Path
avo-1.25.2 lib/generators/avo/locales_generator.rb
avo-2.10.2 lib/generators/avo/locales_generator.rb
avo-2.9.2.pre1 lib/generators/avo/locales_generator.rb
avo-2.10.0 lib/generators/avo/locales_generator.rb
avo-2.9.1.pre7 lib/generators/avo/locales_generator.rb
avo-2.9.1.pre6 lib/generators/avo/locales_generator.rb
avo-2.9.1.pre5 lib/generators/avo/locales_generator.rb
avo-2.9.1.pre4 lib/generators/avo/locales_generator.rb
avo-2.9.1.pre3 lib/generators/avo/locales_generator.rb
avo-2.9.1.pre2 lib/generators/avo/locales_generator.rb
avo-2.9.1.pre1 lib/generators/avo/locales_generator.rb
avo-2.9.0 lib/generators/avo/locales_generator.rb
avo-2.8.0 lib/generators/avo/locales_generator.rb
avo-2.7.1.pre.1 lib/generators/avo/locales_generator.rb
avo-2.7.0 lib/generators/avo/locales_generator.rb
avo-2.6.1.pre.2 lib/generators/avo/locales_generator.rb
avo-2.6.1.pre.1 lib/generators/avo/locales_generator.rb
avo-2.6.0 lib/generators/avo/locales_generator.rb
avo-2.5.2.pre.7 lib/generators/avo/locales_generator.rb
avo-2.5.2.pre.6 lib/generators/avo/locales_generator.rb