mirror of
https://github.com/dkhamsing/open-source-ios-apps.git
synced 2024-11-27 10:14:59 +03:00
Use 🌐 to denote projects not in English, close #585
This commit is contained in:
parent
69cdfaa0d7
commit
5e1ffffb6f
33
.github/osia_convert.rb
vendored
33
.github/osia_convert.rb
vendored
@ -8,6 +8,8 @@ ARCHIVE_TAG = 'archive'
|
||||
|
||||
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 }
|
||||
@ -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)
|
||||
@ -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
|
||||
|
@ -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": [
|
||||
|
Loading…
Reference in New Issue
Block a user