Skip to content

Commit

Permalink
Use 🌐 to denote projects not in English, close #585
Browse files Browse the repository at this point in the history
  • Loading branch information
dkhamsing committed May 28, 2018
1 parent 69cdfaa commit 5e1ffff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 31 deletions.
33 changes: 3 additions & 30 deletions .github/osia_convert.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

APPSTORE = 'APPSTORE.md'

NOT_ENGLISH = '🌐'

def apps_archived(apps)
a = apps.select {|a| a['tags'] != nil }.select {|b| b['tags'].include?ARCHIVE_TAG}
a.sort_by { |k, v| k['title'].downcase }
Expand Down Expand Up @@ -98,11 +100,7 @@ def output_apps(apps, appstoreonly)
end
end

# flags are removed for now https://github.com/dkhamsing/open-source-ios-apps/issues/585
# unless lang.nil?
# details << output_flag(lang)
# details << ' '
# end
details << "#{NOT_ENGLISH} " unless lang.nil?

unless stars.nil?
details << output_stars(stars)
Expand Down Expand Up @@ -157,31 +155,6 @@ def output_badges(count)
b
end

def output_flag(lang)
case lang
when 'deu'
'🇩🇪'
when 'fra'
'🇫🇷'
when 'jpn'
'🇯🇵'
when 'ltz'
'🇱🇺'
when 'nld'
'🇳🇱'
when 'por'
'🇵🇹'
when 'spa'
'🇪🇸'
when 'rus'
'🇷🇺'
when 'zho'
'🇨🇳'
else
''
end
end

def output_stars(number)
case number
when 100...200
Expand Down
2 changes: 1 addition & 1 deletion contents.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Open-Source iOS Apps",
"subtitle": "A collaborative list of open-source `iOS`, `watchOS` and `tvOS` apps, your [contribution](https://github.com/dkhamsing/open-source-ios-apps/blob/master/.github/CONTRIBUTING.md) is welcome :smile:",
"description": "<!-- \n⚠️ This README is generated, please do not update. To contribute, make changes to contents.json ⚠️ \n https://github.com/dkhamsing/open-source-ios-apps -->",
"header": "```\n 100+ Stars: 🔥\n 200+ Stars: 🔥🔥\n 500+ Stars: 🔥🔥🔥\n1000+ Stars: 🔥🔥🔥🔥\n2000+ Stars: 🔥🔥🔥🔥🔥 \n\nClick ► to show more details\n```",
"header": "```\n 100+ Stars: 🔥\n 200+ Stars: 🔥🔥\n 500+ Stars: 🔥🔥🔥\n1000+ Stars: 🔥🔥🔥🔥\n2000+ Stars: 🔥🔥🔥🔥🔥 \n\n🌐 Project is not in English \n\nClick ► to show more details\n```",
"footer": "## Thanks\n\nThis list was inspired by [awesome-ios](https://github.com/vsouza/awesome-ios) and [awesome-swift](https://github.com/matteocrippa/awesome-swift). Thanks to all the [contributors](https://github.com/dkhamsing/open-source-ios-apps/graphs/contributors) 🎉 \n\n## Contact\n\n- [github.com/dkhamsing](https://github.com/dkhamsing)\n- [twitter.com/dkhamsing](https://twitter.com/dkhamsing)\n- [github.com/vpeschenkov](https://github.com/vpeschenkov)\n",
"sponsor": "",
"categories": [
Expand Down

0 comments on commit 5e1ffff

Please sign in to comment.