Sha256: 8b46c9a40ac2150661cd07014ad90246ce29b50a3273dad54ca20ae29bf180d4

Contents?: true

Size: 498 Bytes

Versions: 17

Compression:

Stored size: 498 Bytes

Contents

# frozen_string_literal: true

require "react_on_rails/locales/base"
require "react_on_rails/locales/to_js"
require "react_on_rails/locales/to_json"
require "active_support"

namespace :react_on_rails do
  desc <<-DESC.strip_heredoc
    Generate i18n javascript files
    This task generates javascript locale files: `translations.js` & `default.js` and places them in
    the "ReactOnRails.configuration.i18n_dir".
  DESC
  task locale: :environment do
    ReactOnRails::Locales.compile
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
react_on_rails-12.5.1 lib/tasks/locale.rake
react_on_rails-12.5.0 lib/tasks/locale.rake
react_on_rails-12.4.0 lib/tasks/locale.rake
react_on_rails-12.4.0.rc.0 lib/tasks/locale.rake
react_on_rails-12.3.0 lib/tasks/locale.rake
react_on_rails-12.2.0 lib/tasks/locale.rake
react_on_rails-12.1.0 lib/tasks/locale.rake
react_on_rails-12.0.5.beta.0 lib/tasks/locale.rake
react_on_rails-12.0.4 lib/tasks/locale.rake
react_on_rails-12.0.3 lib/tasks/locale.rake
react_on_rails-12.0.3.beta.0 lib/tasks/locale.rake
react_on_rails-12.0.2 lib/tasks/locale.rake
react_on_rails-12.0.1 lib/tasks/locale.rake
react_on_rails-12.0.0 lib/tasks/locale.rake
react_on_rails-12.0.0.pre.beta.4 lib/tasks/locale.rake
react_on_rails-12.0.0.pre.beta.3 lib/tasks/locale.rake
react_on_rails-12.0.0.pre.beta.2 lib/tasks/locale.rake