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
  territories
  rbnf
]
SHARED_COMPONENTS =

units

%w[
  currency_digits_and_rounding
  rbnf_root
  numbering_systems
  segments_root
  territories_containment
  likely_subtags
  variables
  aliases
]

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


45
46
47
48
# File 'lib/twitter_cldr/resources/locales_resources_importer.rb', line 45

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

Instance Method Details

#importObject



50
51
52
53
# File 'lib/twitter_cldr/resources/locales_resources_importer.rb', line 50

def import
  prepare_ruby_cldr
  import_components
end