remote-I18n-extension-hcc 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a76ccbb2fdffe3ce48f238fbcc2ae6a1b6115228f960a88730c9b1895cd9c9f4
|
4
|
+
data.tar.gz: efe64a30b2b52ede01b60201e955a4e49e34aa4f0bcfb7fed594826916393f28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 220221311ffa3c01f0e3cccc09f7d19c9a0ae412f3794bd261f9ed62dfa1e8bb99903b6d040e4704bfe076561e7cecdac918a4fc776fa30cb4cb19dbcf144c92
|
7
|
+
data.tar.gz: a4025ba9d7a19549f04a0c5b05e10a974d7ab22d1d744542b4666055020c3e36ba9906773753fc8bbc6fa89279b8b7b323576622f3a7de96bf8be810abcf21d0
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'rails/generators'
|
2
|
+
|
3
|
+
module Generators
|
4
|
+
module RemoteI18nExtensionHcc
|
5
|
+
class InstallGenerator < Rails::Generators::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
|
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.
|
4
|
+
version: 1.0.3
|
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
|