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.

Meanwhile, use ruby-cldr v0.0.2 and CLDR 22.1 to update units.yml files.
%w[calendars languages numbers plural_rules lists layout currencies territories rbnf]
SHARED_COMPONENTS =

units

%w[currency_digits_and_rounding rbnf_root numbering_systems segments_root territories_containment]

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


27
28
29
30
# File 'lib/twitter_cldr/resources/locales_resources_importer.rb', line 27

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

Instance Method Details

#importObject



32
33
34
35
# File 'lib/twitter_cldr/resources/locales_resources_importer.rb', line 32

def import
  prepare_ruby_cldr
  import_components
end