diff --git a/.github/osia_convert.rb b/.github/osia_convert.rb index 305e8419..0d78f3fd 100644 --- a/.github/osia_convert.rb +++ b/.github/osia_convert.rb @@ -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 diff --git a/contents.json b/contents.json index 8cbfe374..b93a1693 100644 --- a/contents.json +++ b/contents.json @@ -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": "", - "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": [