Class: TwitterCldr::Resources::LanguageCodesImporter
- Inherits:
-
Object
- Object
- TwitterCldr::Resources::LanguageCodesImporter
- Defined in:
- lib/twitter_cldr/resources/language_codes_importer.rb
Constant Summary collapse
- INPUT_DATA =
{ BCP_47_FILE => 'http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry', ISO_639_FILE => 'http://www-01.sil.org/iso639-3/iso-639-3_20120614.tab' }
- KEYS_TO_STANDARDS =
{ :iso_639_1 => :iso_639_1, :iso_639_2 => :iso_639_2, :iso_639_2_term => :iso_639_2, :iso_639_3 => :iso_639_3, :bcp_47 => :bcp_47, :bcp_47_alt => :bcp_47 }
Instance Method Summary collapse
- #import(import_yaml = false) ⇒ Object
-
#initialize(input_path, output_path) ⇒ LanguageCodesImporter
constructor
A new instance of LanguageCodesImporter.
Constructor Details
#initialize(input_path, output_path) ⇒ LanguageCodesImporter
Returns a new instance of LanguageCodesImporter.
29 30 31 32 |
# File 'lib/twitter_cldr/resources/language_codes_importer.rb', line 29 def initialize(input_path, output_path) @input_path = input_path @output_path = output_path end |
Instance Method Details
#import(import_yaml = false) ⇒ Object
34 35 36 37 |
# File 'lib/twitter_cldr/resources/language_codes_importer.rb', line 34 def import(import_yaml = false) prepare_data import_data(import_yaml) end |