diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 454f9d2..a53435f 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -14,11 +14,11 @@ jobs: include: - ruby: '3.0' # keep in sync with rubocop.yml and gemspec task: 'rubocop' - name: ${{ matrix.ruby }} rake + name: ${{ matrix.ruby }} rake ${{ matrix.task }} steps: - uses: actions/checkout@v2 - uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} bundler-cache: true # runs 'bundle install' and caches installed gems automatically - - run: bundle exec rake + - run: bundle exec rake ${{ matrix.task }} diff --git a/lib/i18n_data/file_data_provider.rb b/lib/i18n_data/file_data_provider.rb index ffe0426..43433e0 100644 --- a/lib/i18n_data/file_data_provider.rb +++ b/lib/i18n_data/file_data_provider.rb @@ -14,7 +14,10 @@ def codes(type, language_code) end def write_cache(provider) - languages = provider.codes(:languages, 'EN').keys + ['zh_CN', 'zh_TW', 'zh_HK', 'bn_IN', 'pt_BR', 'sr@latin', 'nb_NO'] + languages = provider.codes( + :languages, + 'EN' + ).keys + ['zh_CN', 'zh_TW', 'zh_HK', 'bn_IN', 'pt_BR', 'sr@latin', 'nb_NO'] languages.map do |language_code| [:languages, :countries].each do |type| data = provider.send(:codes, type, language_code)