asset_pipeline_i18n 3.2.5.1 → 3.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +12 -1
- metadata +4 -4
data/README.rdoc
CHANGED
@@ -1,6 +1,17 @@
|
|
1
1
|
= AssetPipelineI18n
|
2
2
|
|
3
|
-
asset-pipeline + i18n
|
3
|
+
Shortly: asset-pipeline + i18n
|
4
|
+
|
5
|
+
Some additional words: you would like to internationalize your javascript/css files the same way you do in the rest of application. For example you would like to write something like:
|
6
|
+
|
7
|
+
*app/assets/file.js.erb*
|
8
|
+
|
9
|
+
alert(<%= I18n.t('javascript.key.name') %>)
|
10
|
+
|
11
|
+
That works OK in development mode but with asset pipeline you have only one precompiled and (cached) *application.js* file translated with the default language.
|
12
|
+
What you would need is a collection of language specific _application.js_ files, like *application-en.js*, *application-it.js*, etc., this gem is exactly for this.
|
13
|
+
|
14
|
+
== Usage
|
4
15
|
|
5
16
|
In your Gemfile
|
6
17
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asset_pipeline_i18n
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
12
|
+
date: 2012-06-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 3.2.
|
21
|
+
version: 3.2.6
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - '='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 3.2.
|
29
|
+
version: 3.2.6
|
30
30
|
description: Provide some additional rake task to precompile assets for any available
|
31
31
|
locale
|
32
32
|
email: nicola.piccinini@simplificator.com
|