Class: TwitterCldr::Resources::LocalesResourcesImporter

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

Constant Summary collapse

LOCALE_COMPONENTS =

NOTE: units.yml was NOT updated to cldr 24 (too many significant changes) - add back in when appropriate

%w[calendars languages numbers plurals lists layout currencies territories rbnf]
SHARED_COMPONENTS =

units

%w[currency_digits_and_rounding rbnf_root numbering_systems segments_root]

Instance Method Summary collapse

Constructor Details

#initialize(input_path, output_path) ⇒ LocalesResourcesImporter

Arguments:

input_path  - path to a directory containing CLDR data
output_path - output directory for imported YAML files


24
25
26
27
# File 'lib/twitter_cldr/resources/locales_resources_importer.rb', line 24

def initialize(input_path, output_path)
  @input_path  = input_path
  @output_path = output_path
end

Instance Method Details

#importObject



29
30
31
32
# File 'lib/twitter_cldr/resources/locales_resources_importer.rb', line 29

def import
  prepare_ruby_cldr
  import_components
end