pageflow-public-i18n 1.12.1 → 1.13.0

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: 426221e8ec830385564a20ff05e6d304eeaaf46b111fabfddb1ba9cbaba4d74c
4
- data.tar.gz: 9641100312fdbc8f420329e955041d8fa70ffc812d3abf85c04545200dfa6a55
3
+ metadata.gz: d903fd54a5dd3f831f1cae7e935ccec50c1da06703bd89fa842434b30c819db1
4
+ data.tar.gz: f9ae0837c832827a65db172a99b0325715b585afa7bfd1eec3210f4ab4052fc0
5
5
  SHA512:
6
- metadata.gz: 3c9060b985e5ca756f32290eb62b2315366c19227fc2119fcc7a63749e1d0b977b9cd02613f731760dede19527681d41455d1eee2be670af2f2792868d9cdb81
7
- data.tar.gz: 7f86455db32d840e44bac623ccee59cbb73157710d1cb783b321c45bb3238f1f4ad7b72f1078a0e7bf5688802df4a6e113c78817b27153251cef0e1cbefb9d90
6
+ metadata.gz: 6d49f3e372f68147d122d91b5c2c51ac9d5afb5e96b0a504dcba85177423c11fda3b02907db07efd485269868d72a1be62d558bfaa18aebe422583afa3487a31
7
+ data.tar.gz: c1455508b28473a9c4dca6bbb71a20a3fe1b1c984f2d3c15d7d5705a969cc5ef552626edd428205fae3d4c36ecbcb7e3a416d139a51a96e21982035791e1dbab
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # CHANGELOG
2
2
 
3
+ ### Version 1.13.0
4
+
5
+ 2018-02-22
6
+
7
+ [Compare changes](https://github.com/codevise/pageflow-public-i18n/compare/v1.12.1...v1.13.0)
8
+
9
+ - Api method to determine text direction of locale.
10
+ - Added locale `fa-IR`.
11
+
3
12
  ### Version 1.12.1
4
13
 
5
14
  2017-12-07
@@ -1,5 +1,5 @@
1
1
  module Pageflow
2
2
  module PublicI18n
3
- VERSION = '1.12.1'.freeze
3
+ VERSION = '1.13.0'.freeze
4
4
  end
5
5
  end
@@ -3,6 +3,10 @@ require 'pageflow/public_i18n/version'
3
3
 
4
4
  module Pageflow
5
5
  module PublicI18n
6
+ def self.text_direction(locale)
7
+ ['fa-IR'].include?(locale.to_s) ? 'rtl' : 'ltr'
8
+ end
9
+
6
10
  def self.available_locales
7
11
  [
8
12
  :bg,
@@ -11,6 +15,7 @@ module Pageflow
11
15
  :el,
12
16
  :en,
13
17
  :es,
18
+ :'fa-IR',
14
19
  :fr,
15
20
  :gn,
16
21
  :id,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pageflow-public-i18n
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.1
4
+ version: 1.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Codevise Solutions Ltd.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-12-07 00:00:00.000000000 Z
11
+ date: 2018-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  version: '0'
110
110
  requirements: []
111
111
  rubyforge_project:
112
- rubygems_version: 2.7.0
112
+ rubygems_version: 2.7.5
113
113
  signing_key:
114
114
  specification_version: 4
115
115
  summary: Shared translations for Pageflow plugins.