zendesk_apps_support 4.1.0 → 4.2.0
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 +4 -4
- data/lib/zendesk_apps_support/package.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2179c4d2a6cf6a2163ce8c20f1d338911f294048
|
|
4
|
+
data.tar.gz: d6c1780a2ef2167d19f934aac565eb84e64e21d8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 91d7bca13f6989964ae6831bc44e758576986ce63ed6c567b113989b6d7eb1f2f5c2a8e43de6c243680725fdeabe3783a6da0cc70c9ace92136337c878e792ec
|
|
7
|
+
data.tar.gz: 6cf4cdeb0da373b898cccc7449083b77ae84312d191364323f47ea4a5613f8afcac62627fe1e01b7ac49aa8d72a023021cea91163bb0f7527a06047f143294c4
|
|
@@ -222,7 +222,7 @@ module ZendeskAppsSupport
|
|
|
222
222
|
return {} unless File.directory?(translation_dir)
|
|
223
223
|
|
|
224
224
|
locale_path = "#{translation_dir}/#{manifest.default_locale}.json"
|
|
225
|
-
default_translations = process_translations(locale_path)
|
|
225
|
+
default_translations = process_translations(locale_path, default_locale: true)
|
|
226
226
|
|
|
227
227
|
Dir["#{translation_dir}/*.json"].each_with_object({}) do |path, memo|
|
|
228
228
|
locale = File.basename(path, File.extname(path))
|
|
@@ -249,9 +249,9 @@ module ZendeskAppsSupport
|
|
|
249
249
|
result
|
|
250
250
|
end
|
|
251
251
|
|
|
252
|
-
def process_translations(locale_path)
|
|
252
|
+
def process_translations(locale_path, default_locale: false)
|
|
253
253
|
translations = File.exist?(locale_path) ? JSON.parse(File.read(locale_path)) : {}
|
|
254
|
-
translations['app'].delete('name') if translations.key?('app')
|
|
254
|
+
translations['app'].delete('name') if !default_locale && translations.key?('app')
|
|
255
255
|
translations['app'].delete('package') if translations.key?('app')
|
|
256
256
|
remove_zendesk_keys(translations)
|
|
257
257
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zendesk_apps_support
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.
|
|
4
|
+
version: 4.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James A. Rosen
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date: 2017-
|
|
14
|
+
date: 2017-09-04 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: i18n
|