Class: TwitterCldr::Resources::LocalesResourcesImporter
- Inherits:
-
Object
- Object
- TwitterCldr::Resources::LocalesResourcesImporter
- 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 plurals lists layout currencies territories rbnf]
- SHARED_COMPONENTS =
units
%w[currency_digits_and_rounding rbnf_root numbering_systems segments_root]
Instance Method Summary collapse
- #import ⇒ Object
-
#initialize(input_path, output_path) ⇒ LocalesResourcesImporter
constructor
Arguments:.
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
26 27 28 29 |
# File 'lib/twitter_cldr/resources/locales_resources_importer.rb', line 26 def initialize(input_path, output_path) @input_path = input_path @output_path = output_path end |
Instance Method Details
#import ⇒ Object
31 32 33 34 |
# File 'lib/twitter_cldr/resources/locales_resources_importer.rb', line 31 def import prepare_ruby_cldr import_components end |