deltavista_crif_dva_interface 0.2.3 → 0.2.4
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.
@@ -11,7 +11,8 @@ module DeltavistaCrifDvaInterface
|
|
11
11
|
# @param language [String] language of legal form, default de
|
12
12
|
# @return [Array] all available legal forms for deltavista check
|
13
13
|
def self.legal_forms(language = 'de')
|
14
|
-
I18n.load_path
|
14
|
+
I18n.load_path += Dir["#{File.dirname(__FILE__)}/../../config/*.yml"]
|
15
|
+
I18n.backend.load_translations
|
15
16
|
I18n.locale = language.to_sym
|
16
17
|
[2, 3, 4, 5, 6, 7, 8, 9, 99].map do |key|
|
17
18
|
[I18n.t("legal_form.#{key}"), key]
|
@@ -21,7 +22,8 @@ module DeltavistaCrifDvaInterface
|
|
21
22
|
# @param language [String] language of gender, default de
|
22
23
|
# @return [Array] all available genders for deltavista check
|
23
24
|
def self.genders(language = 'de')
|
24
|
-
I18n.load_path
|
25
|
+
I18n.load_path += Dir["#{File.dirname(__FILE__)}/../../config/*.yml"]
|
26
|
+
I18n.backend.load_translations
|
25
27
|
I18n.locale = language.to_sym
|
26
28
|
[0, 1, 2].map do |key|
|
27
29
|
[I18n.t("gender.#{key}"), key]
|