Skip to content

Commit

Permalink
Merge pull request #71 from grosser/grosser/fix
Browse files Browse the repository at this point in the history
fix line length and ci setup
  • Loading branch information
grosser authored Sep 5, 2024
2 parents c757a75 + 8690583 commit c618427
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
5 changes: 4 additions & 1 deletion lib/i18n_data/file_data_provider.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c618427

Please sign in to comment.