remote-I18n-extension-hcc 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 796fb8eb93a96ae00684aba95b9f5f138b67646ee6461fd186f0c7d2582090b2
4
- data.tar.gz: e87f5e09ac7e5ecf522f028e9f041f8abe5251bcbea22de8c3acc504d2a7223a
3
+ metadata.gz: cbf4d063b580df04d004612e9e5de4dfab6acf2108736859b7c190a051e60fbd
4
+ data.tar.gz: bbff9ac4061e5e56f2848e008e5682879c63eae9534a950c02397784e047d9a6
5
5
  SHA512:
6
- metadata.gz: da3f0e34093d0854e50ad3b7d262d244a67323781dda2a6badb50f58de8561179516242f30060240c0c8147e433250771b72ce0f0041c0ae652498392aaf4319
7
- data.tar.gz: 97bf6701168d4ccda6704545c4826e5260c9f300a96983c1e8e10145b5c2dde25b9e03c9ce1f3312150c45c450625270438d24c92b953f9814ea4b2b8270c86d
6
+ metadata.gz: c2064581959c280b70af4d12b5a710a0388d9fdf7572dab3c5e76dfd939bc5ccf7957af4fb6272ed44c551fa0258b8a8ef85f80ed447ff87f66e77c7deb9776e
7
+ data.tar.gz: 4376bbf44d45c039f37a6a673b0e1593bd7d73e0d71f5f76f2f4952295569d17faa1c05a1b3ff8a4ae7f06b18f2519314415614a608998354c7657cac74f5b25
@@ -0,0 +1,15 @@
1
+ require 'rails/generators'
2
+
3
+ module Generators
4
+ module RemoteI18nExtensionHcc
5
+ class InstallGenerator < Rails::Generator::Base
6
+ source_root File.expand_path('../templates', __dir__)
7
+
8
+ desc 'Creates config file for RemoteI18nExtensionHcc'
9
+
10
+ def copy_config
11
+ template 'remote-I18n-extension-hcc-config.rb', "#{Rails.root}/config/remote-I18n-extension-hcc.rb"
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,25 @@
1
+ require 'remote-I18n-extension-hcc-config'
2
+
3
+ RemoteI18nExtensionHcc.config do |config|
4
+ # All the configurations are mandatory
5
+
6
+ # URL to your remote locales folder housing all the translations
7
+ # Please make sure the file structure inside this folder mirrors your local locales folder
8
+ # for fallback
9
+ # e.g. https://github.com/Gooner91/locales-repo/tree/master/locales
10
+ # config.remote_host = ENV['LOCALES_REMOTE_HOST']
11
+
12
+
13
+ # Below configurations are for the ruby I18n module
14
+
15
+ # List of available locales
16
+ # config.available_locales = [:en, :de]
17
+
18
+
19
+ # config.locale = :en
20
+
21
+ # Paths to the translation files
22
+ # Please make sure the paths to the translation files is same for local and remote locales folder
23
+ # %w[locales/devise.de.yml locales/devise.en.yml ]
24
+ # config.load_path = %w[]
25
+ end
@@ -1,3 +1,3 @@
1
1
  module RemoteI18nExtensionHcc
2
- VERSION = '1.0.1'.freeze
2
+ VERSION = '1.0.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remote-I18n-extension-hcc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hassan Ahmed
@@ -91,6 +91,8 @@ files:
91
91
  - Gemfile
92
92
  - README.md
93
93
  - Rakefile
94
+ - lib/generators/remote-I18n-extension-hcc/install_generator.rb
95
+ - lib/generators/templates/remote-I18n-extension-hcc-config.rb
94
96
  - lib/remote-I18n-extension-hcc.rb
95
97
  - lib/remote-I18n-extension-hcc/backend/remote.rb
96
98
  - lib/remote-I18n-extension-hcc/version.rb