Generate i18n credits file when bumping translations

The i18n credits file was previously generated at build time, but doing
this when bumping translations makes more sense because this way
translators are added to the credits file when their translations are
added to the git repo (and not before that).

This change also removes the i18n credits file from .gitignore so it is
checked in the repo, and it is persisted. This will also make it easier
to track changes in the list of translators.

Also, an added benefit is that now everyone can build the extension.
This is because previously it was necessary to have a private API token
in order to generate the i18n credits file at build time (otherwise the
build failed).

Change-Id: Iecfd7ffd409aedc875f9d84cff0549f8d102d330
diff --git a/.gitignore b/.gitignore
index fd2deab..ef52872 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,4 @@
 .DS_Store
 out/
 src/manifest.json
-src/json/i18n-credits.json
 crowdin.yaml
diff --git a/Makefile b/Makefile
index 98aec15..ea01c71 100644
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,11 @@
-.PHONY: all i18n-credits chromium-stable chromium-beta
+.PHONY: all chromium-stable chromium-beta
 
 all: chromium-stable chromium-beta
 
-i18n-credits:
-	bash generatei18nCredits.bash
-
-chromium-stable: i18n-credits
+chromium-stable:
 	bash release.bash -c stable -b chromium -f
 
-chromium-beta: i18n-credits
+chromium-beta:
 	bash release.bash -c beta -b chromium -f
 
 clean:
diff --git a/generatei18nCredits.bash b/generatei18nCredits.bash
deleted file mode 100644
index 38da15b..0000000
--- a/generatei18nCredits.bash
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/bash
-(cd tools/i18n && go run generate-i18n-credits.go)
diff --git a/src/json/i18n-credits.json b/src/json/i18n-credits.json
new file mode 100644
index 0000000..319f313
--- /dev/null
+++ b/src/json/i18n-credits.json
@@ -0,0 +1,334 @@
+[
+  {
+    "name": "Alexander Simkin",
+    "languages": [
+      {
+        "id": "ru",
+        "name": "Russian"
+      }
+    ]
+  },
+  {
+    "name": "Omer Surer (omersurer)",
+    "languages": [
+      {
+        "id": "nl",
+        "name": "Dutch"
+      },
+      {
+        "id": "tr",
+        "name": "Turkish"
+      }
+    ]
+  },
+  {
+    "name": "myjourney in Steemit (myjourney)",
+    "languages": [
+      {
+        "id": "zh-CN",
+        "name": "Chinese Simplified"
+      },
+      {
+        "id": "zh-TW",
+        "name": "Chinese Traditional"
+      }
+    ]
+  },
+  {
+    "name": "Dremski",
+    "languages": [
+      {
+        "id": "bg",
+        "name": "Bulgarian"
+      }
+    ]
+  },
+  {
+    "name": "Thoth",
+    "languages": [
+      {
+        "id": "et",
+        "name": "Estonian"
+      }
+    ]
+  },
+  {
+    "name": "Reza Rafsanjani (Rr8eezz4aa)",
+    "languages": [
+      {
+        "id": "fa",
+        "name": "Persian"
+      }
+    ]
+  },
+  {
+    "name": "HetzblattGegenHetze (hetzegegenhetze)",
+    "languages": [
+      {
+        "id": "de",
+        "name": "German"
+      }
+    ]
+  },
+  {
+    "name": "Nettlebay AP (nettlebay)",
+    "languages": [
+      {
+        "id": "fr",
+        "name": "French"
+      }
+    ]
+  },
+  {
+    "name": "Csegöldi Csaba (csacseg)",
+    "languages": [
+      {
+        "id": "hu",
+        "name": "Hungarian"
+      }
+    ]
+  },
+  {
+    "name": "Ahmed Mohamed Abbas (moodfactor)",
+    "languages": [
+      {
+        "id": "ar",
+        "name": "Arabic"
+      }
+    ]
+  },
+  {
+    "name": "Can Altıntaş (crybois)",
+    "languages": [
+      {
+        "id": "en-GB",
+        "name": "English, United Kingdom"
+      }
+    ]
+  },
+  {
+    "name": "zararina",
+    "languages": [
+      {
+        "id": "fil",
+        "name": "Filipino"
+      }
+    ]
+  },
+  {
+    "name": "Christian Dos Reis (christianytony)",
+    "languages": [
+      {
+        "id": "it",
+        "name": "Italian"
+      }
+    ]
+  },
+  {
+    "name": "M Angga Ariska (anggaariska)",
+    "languages": [
+      {
+        "id": "id",
+        "name": "Indonesian"
+      }
+    ]
+  },
+  {
+    "name": "Andra  (sarmizegetusa)",
+    "languages": [
+      {
+        "id": "ro",
+        "name": "Romanian"
+      }
+    ]
+  },
+  {
+    "name": "dusttanker (macio955)",
+    "languages": [
+      {
+        "id": "pl",
+        "name": "Polish"
+      }
+    ]
+  },
+  {
+    "name": "Miguel Dos Reis (siersod)",
+    "languages": [
+      {
+        "id": "pt-PT",
+        "name": "Portuguese"
+      }
+    ]
+  },
+  {
+    "name": "sagorahmed",
+    "languages": [
+      {
+        "id": "bn",
+        "name": "Bengali"
+      }
+    ]
+  },
+  {
+    "name": "Grimpy",
+    "languages": [
+      {
+        "id": "sl",
+        "name": "Slovenian"
+      }
+    ]
+  },
+  {
+    "name": "jznsamuel (jasonsamuel88)",
+    "languages": [
+      {
+        "id": "hi",
+        "name": "Hindi"
+      }
+    ]
+  },
+  {
+    "name": "Zacarias Ponte (wolfteambrconta)",
+    "languages": [
+      {
+        "id": "pt-BR",
+        "name": "Portuguese, Brazilian"
+      }
+    ]
+  },
+  {
+    "name": "Marko (MarkoIndaco)",
+    "languages": [
+      {
+        "id": "it",
+        "name": "Italian"
+      }
+    ]
+  },
+  {
+    "name": "Arefat Dev (arefat2005)",
+    "languages": [
+      {
+        "id": "am",
+        "name": "Amharic"
+      }
+    ]
+  },
+  {
+    "name": "Marek Siwak (siwakmarek1971)",
+    "languages": [
+      {
+        "id": "pl",
+        "name": "Polish"
+      }
+    ]
+  },
+  {
+    "name": "Emre Kayık (emrekayik)",
+    "languages": [
+      {
+        "id": "tr",
+        "name": "Turkish"
+      }
+    ]
+  },
+  {
+    "name": "NationalPark (nationalpark)",
+    "languages": [
+      {
+        "id": "zh-CN",
+        "name": "Chinese Simplified"
+      }
+    ]
+  },
+  {
+    "name": "Sturix",
+    "languages": [
+      {
+        "id": "ru",
+        "name": "Russian"
+      }
+    ]
+  },
+  {
+    "name": "DAI GIA VO (lecay0945578232)",
+    "languages": [
+      {
+        "id": "vi",
+        "name": "Vietnamese"
+      }
+    ]
+  },
+  {
+    "name": "wpwwsw wpwwsw (wpwwsw)",
+    "languages": [
+      {
+        "id": "zh-CN",
+        "name": "Chinese Simplified"
+      }
+    ]
+  },
+  {
+    "name": "GiorgioHerbie",
+    "languages": [
+      {
+        "id": "it",
+        "name": "Italian"
+      }
+    ]
+  },
+  {
+    "name": "Tomas Santisteban Castaño (santicastano55)",
+    "languages": [
+      {
+        "id": "es-ES",
+        "name": "Spanish"
+      }
+    ]
+  },
+  {
+    "name": "潘忠廷 (zs123sz)",
+    "languages": [
+      {
+        "id": "zh-TW",
+        "name": "Chinese Traditional"
+      }
+    ]
+  },
+  {
+    "name": "ต่าย กันทะพันธ์ (taiprotex)",
+    "languages": [
+      {
+        "id": "th",
+        "name": "Thai"
+      }
+    ]
+  },
+  {
+    "name": "se7en9702",
+    "languages": [
+      {
+        "id": "te",
+        "name": "Telugu"
+      }
+    ]
+  },
+  {
+    "name": "Thomas Fritz (thomasfritz88)",
+    "languages": [
+      {
+        "id": "de",
+        "name": "German"
+      }
+    ]
+  },
+  {
+    "name": "hjeans",
+    "languages": [
+      {
+        "id": "es-ES",
+        "name": "Spanish"
+      }
+    ]
+  }
+]
\ No newline at end of file
diff --git a/tools/i18n/bump-translations.bash b/tools/i18n/bump-translations.bash
index 181f3cb..5de175c 100644
--- a/tools/i18n/bump-translations.bash
+++ b/tools/i18n/bump-translations.bash
@@ -15,9 +15,12 @@
 
 crowdin download -c crowdin.yml
 
-cd ../../src/_locales
+# Generate i18n credits file
+go run generate-i18n-credits.go
+git add ../../src/json/i18n-credits.json
 
 # Delete empty translations
+cd ../../src/_locales
 for lang in *; do
   if [[ "$lang" == "README.md" ]]; then
     continue