Skip to content

Commit

Permalink
Merge pull request #178 from mozillabrasil/issue-177
Browse files Browse the repository at this point in the history
Added Hubs
  • Loading branch information
WesleyBranton committed Nov 13, 2020
2 parents 269107a + 20e8e52 commit 6168b52
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/_locales/cs/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@
"product_firefox-private-network-vpn": {
"message": "Mozilla VPN"
},
"product_hubs": {
"message": "Hubs"
},
"congratulations": {
"message": "Gratulujeme, všechny dotazy byly zodpovězeny."
},
Expand Down
3 changes: 3 additions & 0 deletions src/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@
"product_firefox-private-network-vpn": {
"message": "Mozilla VPN"
},
"product_hubs": {
"message": "Hubs"
},
"congratulations": {
"message": "Congratulations! All questions have been answered!"
},
Expand Down
3 changes: 3 additions & 0 deletions src/_locales/es/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@
"product_firefox-private-network-vpn": {
"message": "Mozilla VPN"
},
"product_hubs": {
"message": "Hubs"
},
"congratulations": {
"message": "¡Felicidades! ¡Todas las preguntas han sido respondidas!"
},
Expand Down
3 changes: 3 additions & 0 deletions src/_locales/fr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@
"product_firefox-private-network-vpn": {
"message": "Mozilla VPN"
},
"product_hubs": {
"message": "Hubs"
},
"congratulations": {
"message": "Félicitations ! Toutes les questions ont reçu une réponse !"
},
Expand Down
3 changes: 3 additions & 0 deletions src/_locales/hu/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@
"product_firefox-private-network-vpn": {
"message": "Mozilla VPN"
},
"product_hubs": {
"message": "Hubs"
},
"congratulations": {
"message": "Gratulálunk! Az összes kérdés megválaszolva!"
},
Expand Down
3 changes: 3 additions & 0 deletions src/_locales/pl/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@
"product_firefox-private-network-vpn": {
"message": "Mozilla VPN"
},
"product_hubs": {
"message": "Hubs"
},
"congratulations": {
"message": "Gratulacje! Odpowiedzi na wszystkie pytania zostały udzielone!"
},
Expand Down
3 changes: 3 additions & 0 deletions src/_locales/pt-BR/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@
"product_firefox-private-network-vpn": {
"message": "Mozilla VPN"
},
"product_hubs": {
"message": "Hubs"
},
"congratulations": {
"message": "Parabéns! Todas as perguntas foram respondidas!"
},
Expand Down
3 changes: 3 additions & 0 deletions src/_locales/sv/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@
"product_firefox-private-network-vpn": {
"message": "Mozilla VPN"
},
"product_hubs": {
"message": "Hubs"
},
"congratulations": {
"message": "Grattis! Alla frågor har blivit besvarade!"
},
Expand Down
4 changes: 4 additions & 0 deletions src/html/preferences.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ <h3 data-i18n="products"></h3>
<input id="firefox-private-network-vpn" name="chooseProduct" type="checkbox" value="firefox-private-network-vpn">
<span data-i18n="product_firefox-private-network-vpn"></span>
</label>
<label for="hubs">
<input id="hubs" name="chooseProduct" type="checkbox" value="hubs">
<span data-i18n="product_hubs"></span>
</label>
<label for="thunderbird">
<input id="thunderbird" name="chooseProduct" type="checkbox" value="Thunderbird">
<span data-i18n="product_thunderbird"></span>
Expand Down
2 changes: 1 addition & 1 deletion src/js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ function loadRequest(request) {
}

// Clean and save question list in Storage API
removeOld(responseSUMO.results, responseSUMO.results[0].product, responseSUMO.results[0].locale);
if (responseSUMO.results.length > 0) removeOld(responseSUMO.results, responseSUMO.results[0].product, responseSUMO.results[0].locale);
questionList = newQuestionList.concat(questionList);
browser.storage.local.set({
'questions': questionList
Expand Down
Binary file added src/res/products/hubs.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6168b52

Please sign in to comment.