Class: TwitterCldr::Resources::LanguageCodesImporter

Inherits:
Importer
  • Object
show all
Defined in:
lib/twitter_cldr/resources/language_codes_importer.rb

Constant Summary collapse

INPUT_DATA =
{
  BCP_47_FILE  => 'https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry',

  # docs: https://iso639-3.sil.org/code_tables/download_tables#639-3%20Code%20Set
  ISO_639_FILE => 'https://iso639-3.sil.org/sites/iso639-3/files/downloads/iso-639-3.tab'
}
KEYS_TO_STANDARDS =
{
  Part1:      :iso_639_1,
  Part2B:     :iso_639_2,
  Part2T:     :iso_639_2_term,
  Id:         :iso_639_3,
  bcp_47:     :bcp_47,
  bcp_47_alt: :bcp_47_alt
}.freeze
STANDARDS_TO_KEYS =
KEYS_TO_STANDARDS.invert.freeze

Constants inherited from Importer

Importer::DEFAULT_ENGINE

Instance Attribute Summary

Attributes inherited from Importer

#params, #requirements

Method Summary

Methods inherited from Importer

#can_import?, default_params, #import, #initialize, locales, output_path, parameter, parameters, #prepare, requirement, requirements, ruby_engine

Constructor Details

This class inherits a constructor from TwitterCldr::Resources::Importer